From 156ddc6feb4680d4aa2638d8e91663b3fa39a9b4 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Sun, 24 Nov 2024 15:10:01 +0100 Subject: [PATCH] chore: move stylesheet to nixpkgs firefox module --- home/graphical/firefox/default.nix | 11 ----------- home/graphical/swww.nix | 4 ++-- modules/programs/firefox.nix | 2 ++ 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/home/graphical/firefox/default.nix b/home/graphical/firefox/default.nix index fb8be6a..e44378a 100644 --- a/home/graphical/firefox/default.nix +++ b/home/graphical/firefox/default.nix @@ -24,17 +24,6 @@ lib.mkIf osConfig.programs.firefox.enable { min-width: 17.5% !important; } ''; - settings = { - "toolkit.legacyUserProfileCustomizations.stylesheets" = true; - }; - containers = { - uni = { - color = "blue"; - icon = "briefcase"; - }; - }; - containersForce = true; - search = { default = "DuckDuckGo"; force = true; diff --git a/home/graphical/swww.nix b/home/graphical/swww.nix index 38b99c7..8a5e974 100644 --- a/home/graphical/swww.nix +++ b/home/graphical/swww.nix @@ -18,8 +18,8 @@ Install.WantedBy = [ "graphical-session.target" ]; Unit = { - After = [ "graphical-session-pre.target" ]; - PartOf = [ "graphical-session.target" ]; + Wants = [ "graphical-session.target" ]; + After = [ "graphical-session.target" ]; }; Service = { diff --git a/modules/programs/firefox.nix b/modules/programs/firefox.nix index 6e2b615..f168632 100644 --- a/modules/programs/firefox.nix +++ b/modules/programs/firefox.nix @@ -66,6 +66,8 @@ lib.mkIf config.programs.firefox.enable { "browser.download.useDownloadDir" = false; # always ask where to download # Fingerprinting "privacy.resistFingerprinting.block_mozAddonManager" = true; + # Allow styling through userChrome.css + "toolkit.legacyUserProfileCustomizations.stylesheets" = true; }; policies = { PasswordManagerEnabled = false;