Browser
Table of Contents
Emanix ships Firefox, one browser, on graphical hosts. It is themed from the
same palette as every other surface; there is no browser chooser and no
xdg-settings.
1. Launch it
| Key | Does |
|---|---|
s-w |
Firefox |
s-d |
The app launcher, which finds it too |
s-w runs emanix/ewm-launch-firefox, which resolves a binary through
executable lookup only: firefox, then firefox-esr. Home Manager installs
Firefox into the user profile, which is on PATH.
1.1. Your profile is not in the flake
The browser is declared; its contents are not. Bookmarks, history, saved
logins and open tabs live in ~/.mozilla/firefox/default, which is runtime
state. A rebuild neither creates nor restores any of it, so a new machine starts
with an empty browser — the same boundary as wifi credentials in
Network.
Extensions are the consumer's to declare. The distribution ships none; a consuming flake can list them in its own Home Manager config so a reinstall keeps them.
The profile path is pinned to the legacy location. NixOS's state-version- dependent default has moved to the XDG path, and the live profile is not there; following the default would strand it.
2. What the distribution sets
- Chrome, from the active palette.
userChrome.cssis rendered by Nix at build time fromconfig.emanix.theme. - Dark mode that agrees with it.
ui.systemUsesDarkThemefollows the palette's variant, so Firefox's own UI and everyprefers-color-schemepage do not sit dark underneath light chrome. - Wayland file handling. The XDG desktop portal is used for file pickers and MIME handlers, rather than Firefox's own dialogs.
- A quieter new tab. Sponsored tiles and the default top sites are off.
- One pref without which none of the chrome applies:
toolkit.legacyUserProfileCustomizations.stylesheets.
Firefox is the one themed surface that is rebuild-time only. The terminal and
Emacs can be switched live; Firefox renders exactly one palette and the runtime
theme switcher cannot touch it. Changing it means editing emanix.theme and
rebuilding — see Theming.
4. When there is no Nix Firefox
The launcher resolves through PATH and nothing else: firefox, then
firefox-esr. It never reads $EMANIX_BIN_DIR. A host whose browser is not
from Nix — a machine with a distribution Firefox, or a WSL box reaching a
Windows-side one — can put a firefox shim on PATH from its own flake. The
launcher finds it the same way it finds the profile's own, and on a host where
the distribution's own programs.firefox applies, the profile's Firefox wins.
5. Why not the FirefoxColor extension
The popular Catppuccin port themes Firefox by installing the FirefoxColor extension; Emanix generates the chrome CSS instead.
6. Ongoing
Rebuild with Build and Deploy; the palette is the only browser setting that a rebuild changes.