diff options
Diffstat (limited to 'machines')
| -rw-r--r-- | machines/enzo/desktop.nix | 76 |
1 files changed, 19 insertions, 57 deletions
diff --git a/machines/enzo/desktop.nix b/machines/enzo/desktop.nix index 1e51e53..d92dda3 100644 --- a/machines/enzo/desktop.nix +++ b/machines/enzo/desktop.nix @@ -93,64 +93,26 @@ "input" ]; - users.users.hwebs.packages = with pkgs; [ - # LibreWolf with customizations baked into the package. There's no - # programs.librewolf module, but librewolf is wrapFirefox-based, so - # extraPolicies writes an enterprise policy into the package's distribution - # dir — no profile, no /etc file. Dark theme is handled desktop-wide by the - # portal (see color-scheme dconf key above), so no theme prefs needed here. - (librewolf.override { - extraPolicies = { - DisableAppUpdate = true; - Preferences = { - # LibreWolf enables resistFingerprinting by default, which spoofs web - # content's prefers-color-scheme to light — so sites ignore the - # desktop dark setting (and devtools can't toggle it). Turn it off so - # pages follow dark; LibreWolf keeps its other protections (uBlock, no - # telemetry). - # - # Must be "locked", not "default": LibreWolf's mozilla.cfg does - # defaultPref("privacy.resistFingerprinting", true), and a policy - # "default" writes the same branch and loses the tie to the autoconfig. - # "locked" wins over defaultPref. - "privacy.resistFingerprinting" = { - Value = false; - Status = "locked"; - }; - - # Follow the desktop's dark setting for web content. Firefox's default - # (widget.use-xdg-desktop-portal.settings = 2 "auto") reads GTK - # directly under bare niri and ignores the portal, so content stayed - # light even after the portal correctly reported prefer-dark. Force it - # to always use the portal (1) so prefers-color-scheme follows the - # color-scheme we serve via xdg-desktop-portal-gtk above. - "widget.use-xdg-desktop-portal.settings" = { - Value = 1; - Status = "default"; - }; - - # Blank home page + blank new tab - "browser.startup.homepage" = { - Value = "about:blank"; - Status = "default"; - }; - "browser.startup.page" = { - Value = 0; # 0 = blank on startup - Status = "default"; - }; - "browser.newtabpage.enabled" = { - Value = false; - Status = "default"; - }; - # Hide the bookmarks toolbar - "browser.toolbars.bookmarks.visibility" = { - Value = "never"; - Status = "default"; - }; - }; - }; - }) + # Firefox: blank home/new-tab and no bookmarks toolbar, delivered as an + # enterprise policy (no profile to manage). Dark theme is not configured here + # — it comes from the desktop portal (color-scheme dconf + Settings=gtk + # above), which Firefox honors for both chrome and web content. (LibreWolf was + # tried instead but forces content light via its fingerprinting protection + # even with resistFingerprinting off, so plain Firefox is the better fit.) + programs.firefox = { + enable = true; + preferencesStatus = "default"; + preferences = { + # Blank home page + blank new tab + "browser.startup.homepage" = "about:blank"; + "browser.startup.page" = 0; # 0 = blank on startup + "browser.newtabpage.enabled" = false; + # Hide the bookmarks toolbar + "browser.toolbars.bookmarks.visibility" = "never"; + }; + }; + users.users.hwebs.packages = with pkgs; [ ghostty # terminal fuzzel # launcher swaybg # wallpaper |
