diff options
| -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 |
