diff --git a/flake.lock b/flake.lock index 2bdfd49b..afb4cf03 100644 --- a/flake.lock +++ b/flake.lock @@ -1224,7 +1224,8 @@ "nixpkgs-small": "nixpkgs-small", "nur": "nur", "systems": "systems_5", - "tuirun": "tuirun" + "tuirun": "tuirun", + "zen-browser": "zen-browser" } }, "rust-overlay": { @@ -1448,6 +1449,26 @@ "repo": "xdg-desktop-portal-hyprland", "type": "github" } + }, + "zen-browser": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1729421324, + "narHash": "sha256-uZGVMe9EgSXmiX6WysVt8ooHP+KW2biEmP/lxLMQ7aY=", + "owner": "cnsta", + "repo": "zen-browser-flake", + "rev": "70f6800e45062c93c99118a9010a42adbb63b1f3", + "type": "github" + }, + "original": { + "owner": "cnsta", + "repo": "zen-browser-flake", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index fe77f518..33c5092f 100644 --- a/flake.nix +++ b/flake.nix @@ -112,6 +112,11 @@ # inputs.nixpkgs.follows = "nixpkgs"; # }; + zen-browser = { + url = "github:cnsta/zen-browser-flake"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + # Custom apps tuirun.url = "git+https://git.sr.ht/~canasta/tuirun"; }; diff --git a/modules/default.nix b/modules/default.nix index 9cc2ee44..99e1c8f8 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -4,6 +4,7 @@ imports = [ ./home/browsers/chromium ./home/browsers/firefox + ./home/browsers/zen ./home/comm/discord diff --git a/modules/home/browsers/firefox/default.nix b/modules/home/browsers/firefox/default.nix index 2e29a95a..95906200 100644 --- a/modules/home/browsers/firefox/default.nix +++ b/modules/home/browsers/firefox/default.nix @@ -34,7 +34,7 @@ in { swedish-dictionary reddit-enhancement-suite return-youtube-dislikes - # enhancer-for-youtube # unfree + enhancer-for-youtube # unfree ]; settings = { "apz.overscroll.enabled" = true; diff --git a/modules/home/browsers/zen/default.nix b/modules/home/browsers/zen/default.nix new file mode 100644 index 00000000..197f462a --- /dev/null +++ b/modules/home/browsers/zen/default.nix @@ -0,0 +1,19 @@ +{ + pkgs, + config, + lib, + inputs, + ... +}: let + inherit (lib) mkIf mkEnableOption; + cfg = config.home.browsers.zen; +in { + options = { + home.browsers.zen.enable = mkEnableOption "Enables zen browser"; + }; + config = mkIf cfg.enable { + home.packages = [ + inputs.zen-browser.packages.${pkgs.system}.default + ]; + }; +} diff --git a/modules/home/wm/hyprland/cnst/keybinds.nix b/modules/home/wm/hyprland/cnst/keybinds.nix index 961d75b5..436a39c5 100644 --- a/modules/home/wm/hyprland/cnst/keybinds.nix +++ b/modules/home/wm/hyprland/cnst/keybinds.nix @@ -26,8 +26,8 @@ in { "$passwordManager" = "keepassxc"; "$menu" = "pkill anyrun || anyrun | xargs hyprctl dispatch exec --"; "$menuw" = "pkill anyrun || anyrun | xargs hyprctl dispatch exec --"; - "$browser" = "firefox"; - "$browserinc" = "firefox --private-window"; + "$browser" = "zen"; + "$browserinc" = "zen --private-window"; "$yazi" = "alacritty -e yazi"; "$tuirun" = "tuirun-toggle.sh"; diff --git a/modules/system/utils/misc/default.nix b/modules/system/utils/misc/default.nix index 127fc869..c0bebf06 100644 --- a/modules/system/utils/misc/default.nix +++ b/modules/system/utils/misc/default.nix @@ -27,6 +27,7 @@ in { (mkIf cfg.desktop.enable [ pkgs.protonup pkgs.winetricks + pkgs.tor-browser ]) ]; }; diff --git a/users/cnst/modules.nix b/users/cnst/modules.nix index 77d569ee..21bc7f43 100644 --- a/users/cnst/modules.nix +++ b/users/cnst/modules.nix @@ -17,6 +17,9 @@ chromium = { enable = false; }; + zen = { + enable = true; + }; }; comm = { discord = {