summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/browsers/default.nix2
-rw-r--r--modules/browsers/zen.nix34
2 files changed, 36 insertions, 0 deletions
diff --git a/modules/browsers/default.nix b/modules/browsers/default.nix
index bf18d34..29049f4 100644
--- a/modules/browsers/default.nix
+++ b/modules/browsers/default.nix
@@ -7,9 +7,11 @@
in {
imports = [
./firefox
+ ./zen.nix
];
options.browsers = {
firefox = mkEnableOption "Enable the firefox browser.";
+ zen = mkEnableOption "Enable the zen browser.";
};
}
diff --git a/modules/browsers/zen.nix b/modules/browsers/zen.nix
new file mode 100644
index 0000000..e57625f
--- /dev/null
+++ b/modules/browsers/zen.nix
@@ -0,0 +1,34 @@
+{
+ config,
+ lib,
+ inputs,
+ ...
+}: let
+ inherit (lib) mkIf;
+ cfg = config.browsers;
+in {
+ config = mkIf cfg.zen {
+ default.browser = lib.mkDefault "zen";
+
+ home-manager.users.${config.user} = {
+ imports = [
+ inputs.zen-browser.homeModules.default
+ ];
+
+ programs.zen-browser = {
+ enable = true;
+
+ # import configuration
+ policies = import ./firefox/policies.nix;
+
+ # create profile for me :3
+ profiles.${config.user} = {
+ search = {
+ force = true;
+ default = "ddg";
+ };
+ };
+ };
+ };
+ };
+}