diff options
Diffstat (limited to 'modules/nixos/chromium.nix')
-rw-r--r-- | modules/nixos/chromium.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/nixos/chromium.nix b/modules/nixos/chromium.nix new file mode 100644 index 0000000..4f0ae12 --- /dev/null +++ b/modules/nixos/chromium.nix @@ -0,0 +1,27 @@ +{ + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.nixfiles.modules.chromium; +in { + options.nixfiles.modules.chromium.enable = mkEnableOption "Chromium"; + + config = mkIf cfg.enable { + hm = { + home.packages = with pkgs; [profile-cleaner]; + + programs.chromium = { + enable = true; + + package = pkgs.chromium; + + extensions = [ + {id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";} # uBlock Origin + ]; + }; + }; + }; +} |