diff --git a/modules/zen-browser/hm.nix b/modules/zen-browser/hm.nix index 71c6f190..09573dee 100644 --- a/modules/zen-browser/hm.nix +++ b/modules/zen-browser/hm.nix @@ -17,6 +17,12 @@ mkTarget { default = [ ]; example = [ "default" ]; }; + + enableCss = lib.mkOption { + type = lib.types.bool; + default = true; + description = "enables userChrome and userContent css styles for the browser"; + }; }; configElements = lib.optionals (options.programs ? zen-browser) [ @@ -49,15 +55,17 @@ mkTarget { colors, }: { - programs.zen-browser.profiles = lib.genAttrs cfg.profileNames (_: { - settings = { - "toolkit.legacyUserProfileCustomizations.stylesheets" = true; - }; + programs.zen-browser.profiles = lib.mkIf cfg.enableCss ( + lib.genAttrs cfg.profileNames (_: { + settings = { + "toolkit.legacyUserProfileCustomizations.stylesheets" = true; + }; - userChrome = import ./userChrome.nix { inherit colors; }; + userChrome = import ./userChrome.nix { inherit colors; }; - userContent = import ./userContent.nix { inherit colors; }; - }); + userContent = import ./userContent.nix { inherit colors; }; + }) + ); } ) ];