Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Browser — Firefox, Floorp, and the FF Ultima Theme

Purpose

programs.firefox and programs.floorp are configured together, sharing one profile, extension policies, and search engines. Both browsers carry the FF Ultima userChrome theme.

Entry Point

FF Ultima

Version 5 of the theme dropped the old user.js model. It now ships two halves:

  • CSS — the theme files in the profile chrome directory. userChrome.css imports theme/*.
  • JS — userChromeJS plus the userChrome Companion extension, which together toggle the theme’s -moz-pref settings.

The JS half installs through the AutoConfig mechanism, which reads two files from the browser installation directory, not the profile:

FileRole
defaults/pref/autoconfig.jspoints general.config.filename at mozilla.cfg
mozilla.cfgprivileged script run at startup

Both are generated by the wrapFirefox builder, and the installation directory is read-only in the Nix store, so the theme cannot be copied into it. The module extends the wrapper instead:

  • withUltimaAutoConfig passes the theme’s userchromejs/firefox/config.js through the wrapper argument extraPrefsFiles, which appends it to mozilla.cfg.
  • The same override appends general.config.sandbox_enabled = false to autoconfig.js. userChromeJS needs parts the sandbox withholds, so the sandbox has to be off for the JS half to load.

The chrome directory is assembled with home.file links: The theme repository under chrome/firefox-ultima, and chrome/userchromejs at the chrome root, because userChromeJS resolves its assets from there. No theme files are copied, so the pinned flake input stays the single source of truth.

Settings

Settings are exposed as about:config preferences read by CSS -moz-pref queries, rather than through user.js. The profile settings block sets the ones this configuration wants directly; the remaining defaults are applied by userChrome Companion on first run. The extension is force-installed through the shared extension policies.