summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-08-05 19:49:56 -0400
committerFreya Murphy <freya@freyacat.org>2025-08-05 19:49:56 -0400
commitd9a184ba62e94926f7b34089c5c850c4bc1f1ee3 (patch)
tree69b69f72d3e4d0134349ae2f20dc33b72dafbf60
parentupdate commits (diff)
downloaddotfiles-nix-d9a184ba62e94926f7b34089c5c850c4bc1f1ee3.tar.gz
dotfiles-nix-d9a184ba62e94926f7b34089c5c850c4bc1f1ee3.tar.bz2
dotfiles-nix-d9a184ba62e94926f7b34089c5c850c4bc1f1ee3.zip
zen browser
-rw-r--r--flake.lock26
-rw-r--r--flake.nix4
-rw-r--r--modules/browsers/default.nix2
-rw-r--r--modules/browsers/zen.nix34
4 files changed, 65 insertions, 1 deletions
diff --git a/flake.lock b/flake.lock
index 6890ef2..fde01bd 100644
--- a/flake.lock
+++ b/flake.lock
@@ -569,7 +569,8 @@
"nixpkgs": "nixpkgs",
"rose-pine-hyprcursor": "rose-pine-hyprcursor",
"sops-nix": "sops-nix",
- "talc": "talc"
+ "talc": "talc",
+ "zen-browser": "zen-browser"
}
},
"rose-pine-hyprcursor": {
@@ -825,6 +826,29 @@
"repo": "xdg-desktop-portal-hyprland",
"type": "github"
}
+ },
+ "zen-browser": {
+ "inputs": {
+ "home-manager": [
+ "home-manager"
+ ],
+ "nixpkgs": [
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1754365690,
+ "narHash": "sha256-je5DVA23UU2RzJB1A7VTNSohPk/FE8HwDJaSK65/UJg=",
+ "owner": "0xc000022070",
+ "repo": "zen-browser-flake",
+ "rev": "ec4909d02fb8c2d3c00ca71ceafb65753b4e3ea6",
+ "type": "github"
+ },
+ "original": {
+ "owner": "0xc000022070",
+ "repo": "zen-browser-flake",
+ "type": "github"
+ }
}
},
"root": "root",
diff --git a/flake.nix b/flake.nix
index 0015bcd..7efcb52 100644
--- a/flake.nix
+++ b/flake.nix
@@ -35,6 +35,10 @@
rose-pine-hyprcursor.url = "github:ndom91/rose-pine-hyprcursor";
rose-pine-hyprcursor.inputs.nixpkgs.follows = "nixpkgs";
rose-pine-hyprcursor.inputs.hyprlang.follows = "hyprland/hyprlang";
+ # zen browser
+ zen-browser.url = "github:0xc000022070/zen-browser-flake";
+ zen-browser.inputs.nixpkgs.follows = "nixpkgs";
+ zen-browser.inputs.home-manager.follows = "home-manager";
};
outputs = {
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";
+ };
+ };
+ };
+ };
+ };
+}