This commit is contained in:
xunuwu 2024-09-27 21:07:44 +02:00
parent 448372de7a
commit ffa3121602
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
11 changed files with 243 additions and 38 deletions

View file

@ -31,7 +31,7 @@
profiles.xun = {
extensions = with config.nur.repos.rycee.firefox-addons; [
ublock-origin
darkreader
(lib.mkIf (config.xun.desktop.colorscheme == "dark") darkreader)
sponsorblock
tridactyl
translate-web-pages
@ -49,7 +49,28 @@
})
];
userChrome = builtins.readFile ./userChrome.css;
# extraConfig = let
# inherit (config.xun.desktop) colorscheme;
# in
# lib.mkIf (colorscheme != null)
# "browser.management.setEnabled(\"${
# if colorscheme == "dark"
# then "{30756de5-da3b-43c4-8b35-1db7bb01680a}"
# else if colorscheme == "light"
# then "firefox-compact-light@mozilla.org"
# else null
# }\", true);";
settings = {
"extensions.activeThemeID" = let
inherit (config.xun.desktop) colorscheme;
in
lib.mkIf (colorscheme != null) (
if colorscheme == "dark"
then "{30756de5-da3b-43c4-8b35-1db7bb01680a}"
else if colorscheme == "light"
then "firefox-compact-light@mozilla.org"
else null
);
"browser.display.use_system_colors" = true; # about:blank colour match colourscheme
"toolkit.legacyUserProfileCustomizations.stylesheets" = true; # enable userChrome
"browser.tabs.inTitleBar" = "0"; # use system title bar