From e6ed60548397627bf10f561f9438201dbba0a36e Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 21 Apr 2024 02:15:42 +0300 Subject: 2024-04-21 --- modules/chromium.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 modules/chromium.nix (limited to 'modules/chromium.nix') diff --git a/modules/chromium.nix b/modules/chromium.nix new file mode 100644 index 0000000..c7842d5 --- /dev/null +++ b/modules/chromium.nix @@ -0,0 +1,29 @@ +{ + 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.ungoogled-chromium; + + extensions = [ + { id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; } # uBlock Origin + ]; + }; + }; + }; +} -- cgit v1.2.3