diff --git a/flake.lock b/flake.lock index 6b22add..77041a8 100644 --- a/flake.lock +++ b/flake.lock @@ -240,6 +240,22 @@ "type": "github" } }, + "nixpkgs_4": { + "locked": { + "lastModified": 1727348695, + "narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "1925c603f17fc89f4c8f6bf6f631a802ad85d784", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "nur": { "locked": { "lastModified": 1733136078, @@ -263,7 +279,8 @@ "hyprcursor-rose-pine": "hyprcursor-rose-pine", "nix-colors": "nix-colors", "nixpkgs": "nixpkgs_3", - "nur": "nur" + "nur": "nur", + "zen-browser": "zen-browser" } }, "systems": { @@ -328,6 +345,24 @@ "repo": "flake-utils", "type": "github" } + }, + "zen-browser": { + "inputs": { + "nixpkgs": "nixpkgs_4" + }, + "locked": { + "lastModified": 1739222645, + "narHash": "sha256-6FsTAjrO0TN5+gVxx3hmWqEJWs1sJ1p3E8DKWHdlN6M=", + "owner": "youwen5", + "repo": "zen-browser-flake", + "rev": "7e60ade066a54797b376ebaf554bc2efa255ff8a", + "type": "github" + }, + "original": { + "owner": "youwen5", + "repo": "zen-browser-flake", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 8447a48..ee4f080 100644 --- a/flake.nix +++ b/flake.nix @@ -27,6 +27,10 @@ # - Hyprland --------------------------------- hyprcursor-rose-pine.url = "github:ndom91/rose-pine-hyprcursor"; + + # - More stuff ------------------------------- + zen-browser.url = "github:youwen5/zen-browser-flake"; + }; outputs = inputs @ { self, nixpkgs, home-manager, ... }: diff --git a/modules/app/zen-browser.nix b/modules/app/zen-browser.nix index a2061e6..f92e309 100644 --- a/modules/app/zen-browser.nix +++ b/modules/app/zen-browser.nix @@ -4,6 +4,7 @@ let cfg = config.samfelag.modules.app.zen-browser; i3Cfg = config.samfelag.modules.desktop.wm.i3; hyprCfg = config.samfelag.modules.desktop.wm.hyprland; + zen-pkg = inputs.zen-browser.packages."${system}".default; in { options.samfelag.modules.app.zen-browser = { @@ -11,15 +12,15 @@ in }; config = lib.mkIf cfg.enable { environment.systemPackages = with pkgs; [ - inputs.zen-browser.packages."${system}".default + zen-pkg ]; samfelag.modules.desktop.wm.i3.extraKeybindings = lib.mkIf i3Cfg.enable { - "${i3Cfg.mod}+Shift+i" = "exec ${pkgs.zen-browser}/bin/zen"; + "${i3Cfg.mod}+Shift+i" = "exec ${zen-pkg}/bin/zen"; }; samfelag.modules.desktop.wm.hyprland.extraKeybindings = lib.mkIf hyprCfg.enable [ - "${hyprCfg.mod} SHIFT, i, exec, ${pkgs.zen-browser}/bin/zen" + "${hyprCfg.mod} SHIFT, i, exec, ${zen-pkg}/bin/zen" ]; }; } diff --git a/modules/desktop/grapheio.nix b/modules/desktop/grapheio.nix index 5127fd9..e7da138 100644 --- a/modules/desktop/grapheio.nix +++ b/modules/desktop/grapheio.nix @@ -118,7 +118,7 @@ in app = { alacritty.enable = true; - firefox.enable = true; + zen-browser.enable = true; }; };