diff options
| author | Henry J. Webster <hwebs@hwebs.info> | 2026-07-30 17:55:14 -0500 |
|---|---|---|
| committer | Henry J. Webster <hwebs@hwebs.info> | 2026-07-30 17:55:14 -0500 |
| commit | 24d03908557a8ccf528d3bba66bd1196941eecb8 (patch) | |
| tree | a90bc3877b28a2e2038071657be656bd9ead87ba /machines | |
| parent | 84ff065ab0a95cc440d1e7c1485cbf4ce740fedc (diff) | |
enzo: declarative firefox customizations
Dark chrome, blank home/new-tab, and toolbar removal via userChrome.css.
Assisted-by: Claude:claude-opus-4-8
Diffstat (limited to 'machines')
| -rw-r--r-- | machines/enzo/desktop.nix | 35 |
1 files changed, 33 insertions, 2 deletions
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 |
