From 24d03908557a8ccf528d3bba66bd1196941eecb8 Mon Sep 17 00:00:00 2001 From: "Henry J. Webster" Date: Thu, 30 Jul 2026 17:55:14 -0500 Subject: enzo: declarative firefox customizations Dark chrome, blank home/new-tab, and toolbar removal via userChrome.css. Assisted-by: Claude:claude-opus-4-8 --- machines/enzo/desktop.nix | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) (limited to 'machines/enzo') diff --git a/machines/enzo/desktop.nix b/machines/enzo/desktop.nix index 8d61670..338e75c 100644 --- a/machines/enzo/desktop.nix +++ b/machines/enzo/desktop.nix @@ -71,9 +71,40 @@ "input" ]; - programs.firefox.enable = true; + # Firefox with declarative customizations: dark chrome, blank home/new-tab, + # and toolbars stripped via userChrome.css. Settings here are authoritative on + # each rebuild; anything not listed stays adjustable in the UI. + programs.firefox = { + enable = true; + + profiles.default = { + isDefault = true; + + settings = { + # Dark theme (UI chrome + toolbars) + "ui.systemUsesDarkTheme" = 1; + "browser.theme.content-theme" = 0; + "browser.theme.toolbar-theme" = 0; + + # Blank home page + blank new tab + "browser.startup.homepage" = "about:blank"; + "browser.startup.page" = 0; # 0 = blank on startup + "browser.newtabpage.enabled" = false; - + # Required for userChrome.css below to load + "toolkit.legacyUserProfileCustomizations.stylesheets" = true; + }; + + # Toolbar removal. Tweak/uncomment to taste. + userChrome = '' + /* Bookmarks toolbar */ + #PersonalToolbar { visibility: collapse !important; } + + /* Whole nav + tab strip (uncomment for a truly chromeless window) */ + /* #navigator-toolbox { visibility: collapse !important; } */ + ''; + }; + }; users.users.hwebs.packages = with pkgs; [ ghostty # terminal -- cgit v1.3