diff --git a/config/Wallpaper.nix b/config/Wallpaper.nix index b4c0abcf..773de53f 100644 --- a/config/Wallpaper.nix +++ b/config/Wallpaper.nix @@ -1,9 +1,9 @@ { pkgs, lib, ... }: with lib; let - url = "https://i.imgur.com/3fJXekt.jpeg"; - sha256 = "sha256-3ZyFZwWuVg4oXZ0zfN2LuPgf7KEFdTS3zWd1FYScOdQ="; - forceContrastText = true; + url = "https://i.imgur.com/Q8ZTZCH.png"; + sha256 = "sha256-HL3mJOeF6UKXL3ymj9ZynzgZTUJgw/lsxq9Xhpe3A8A="; + forceContrastText = false; in { options = { diff --git a/home/program/firefox/default.nix b/home/program/firefox/default.nix index e63d5016..211d699b 100644 --- a/home/program/firefox/default.nix +++ b/home/program/firefox/default.nix @@ -54,7 +54,7 @@ let ]; prefs = [ - # WARN: Remove when Dark Reader policies gets mnerged. + # WARN: Remove when Dark Reader policies gets merged. (mkLockedPref "xpinstall.signatures.required" false) # Bookmarks. @@ -267,56 +267,55 @@ in ]; }; "addon@darkreader.org" = { - enabled = false; - enabledByDefault = false; + enabled = true; + enabledByDefault = true; + changeBrowserTheme = false; + detectDarkTheme = true; + enableContextMenus = true; + enableForPDF = true; + enableForProtectedPages = false; + fetchNews = false; previewNewDesign = true; syncSettings = false; - # disabledFor = [ - # "home.voronind.com" - # ]; - # fetchNews = false; - # theme = { - # mode = 1; - # brightness = 100; - # contrast = 100; - # grayscale = 0; - # sepia = 0; - # useFont = true; - # fontFamily = config.style.font.sansSerif.name; - # textStroke = 0; - # engine = "dynamicTheme"; # dynamicTheme, cssFilter or svgFilter. - # stylesheet = ""; - # darkSchemeBackgroundColor = "ff0000"; - # darkSchemeTextColor = "00ff00"; - # lightSchemeBackgroundColor = "ff0000"; - # lightSchemeTextColor = "00ff00"; - # scrollbarColor = "0000ff"; - # selectionColor = "00ffff"; - # styleSystemControls = true; - # lightColorScheme = "Default"; - # darkColorScheme = "Default"; - # immediateModify = true; - # }; - # changeBrowserTheme = true; - # syncSitesFixes = true; - # automation = { - # enabled = false; - # mode = ""; - # behavior = "OnOff"; - # }; - # time = { - # activation = "18:00"; - # deactivation = "9:00"; - # }; - # location = { - # latitude = null; - # longitude = null; - # }; - # previewNewDesign = true; - # enableForPDF = true; - # enableForProtectedPages = false; - # enableContextMenus = true; - # detectDarkTheme = true; + syncSitesFixes = true; + disabledFor = [ + "home.voronind.com" + ]; + theme = { + mode = 1; + brightness = 100; + contrast = 100; + grayscale = 0; + sepia = 0; + useFont = false; + fontFamily = config.style.font.sansSerif.name; + textStroke = 0; + engine = "dynamicTheme"; # dynamicTheme, cssFilter or svgFilter. + stylesheet = ""; + darkSchemeBackgroundColor = "#${config.style.color.bg.dark}"; + darkSchemeTextColor = "#${config.style.color.fg.light}"; + lightSchemeBackgroundColor = "#${config.style.color.bg.light}"; + lightSchemeTextColor = "#${config.style.color.fg.dark}"; + scrollbarColor = "#${config.style.color.neutral}"; + selectionColor = "#${config.style.color.selection}"; + styleSystemControls = true; + lightColorScheme = "Default"; + darkColorScheme = "Default"; + immediateModify = true; + }; + automation = { + enabled = false; + mode = ""; + behavior = "OnOff"; + }; + time = { + activation = "18:00"; + deactivation = "9:00"; + }; + location = { + latitude = null; + longitude = null; + }; }; }; # NOTE: `firefox-esr` edition is required to change search engines. diff --git a/package/darkreader/default.nix b/package/darkreader/default.nix index c85f5a1e..1eeb76d1 100644 --- a/package/darkreader/default.nix +++ b/package/darkreader/default.nix @@ -7,7 +7,7 @@ }: buildNpmPackage rec { # version = "4.9.96"; - version = "c700f9e03440131d46c6506eca79499a65fb1bd8"; + version = "af57bb1370bd449a7b294759bf2ce353f358ace8"; pname = "dark-reader"; @@ -15,12 +15,11 @@ buildNpmPackage rec { owner = "nenikitov"; repo = "darkreader"; # rev = "v${version}"; - # rev = "c700f9e03440131d46c6506eca79499a65fb1bd8"; rev = version; - hash = "sha256-oscW2V6GBBAa6/1uwhU4nimu2kMnd429p9rCEYZC7ZM="; + hash = "sha256-cX/kwG6lOjNTsf6x86jVWmYLvB6qIeK/B0s2aT08oJU="; }; - npmDepsHash = "sha256-e41PXGgoQkVSHQj6kElqXPhzc6irnr09ltBAPmcUjik="; + npmDepsHash = "sha256-+FPYo5ev/ccp28vX6As/KbFtOtf9bQfhA0b1ufHVmTo="; # npmDepsHash = "sha256-dSuCL8GZXiksqVQ+TypzOdAROn3q30ExaGCJu72GLyY="; # npmDeps = fetchNpmDeps { # inherit src;