diff --git a/modules/programs/firefox.nix b/modules/programs/firefox.nix index 17c64752d..7f2367eb0 100644 --- a/modules/programs/firefox.nix +++ b/modules/programs/firefox.nix @@ -137,7 +137,7 @@ in userChrome = mkOption { type = types.lines; default = ""; - description = "Custom Firefox CSS."; + description = "Custom Firefox user chrome CSS."; example = '' /* Hide tab bar in FF Quantum */ @-moz-document url("chrome://browser/content/browser.xul") { @@ -153,6 +153,16 @@ in ''; }; + userContent = mkOption { + type = types.lines; + default = ""; + description = "Custom Firefox user content CSS."; + example = '' + /* Hide scrollbar in FF Quantum */ + *{scrollbar-width:none !important} + ''; + }; + path = mkOption { type = types.str; default = name; @@ -295,6 +305,11 @@ in text = profile.userChrome; }; + "${profilesPath}/${profile.path}/chrome/userContent.css" = + mkIf (profile.userContent != "") { + text = profile.userContent; + }; + "${profilesPath}/${profile.path}/user.js" = mkIf (profile.settings != {} || profile.extraConfig != "") { text = mkUserJs profile.settings profile.extraConfig;