GeezerVison is showing github.com — main is unbuildable for Home Manager activation: firefox module eval fails (package.override missing) since #6146 · Issue #6156 · developing-today/code
main is unbuildable for Home Manager activation: firefox module eval fails (package.override missing) since #6146 #6156DescriptionSymptom
Evaluating the laptop's Home Manager generation on current main fails:
nix eval .#nixosConfigurations.amd.config.home-manager.users.user.home.activationPackage.drvPath
error: attribute 'override' missing
at home-manager/modules/programs/firefox/mkFirefoxModule.nix:235
if lib.functionArgs package.override ? cfg then
callWithAppDataDir package.override (old: { ... })
Verified on a clean detached worktree of main @ 266875e with zero local changes — this is not lane-local. It blocks every HM activation and any nixos-rebuild switch that evaluates the user generation, fleet-wide for this host.
Implicated change
PR #6146 (commit 8b5a929, "feat(browsers): structural WebDriver BiDi for Firefox + Zen on loopback", for #5924) reworked the Firefox/Zen packaging. The wrapped package the HM firefox module receives no longer exposes the override attribute shape mkFirefoxModule probes with lib.functionArgs package.override. The previous main @ 31ee14f (pre-#6146) evaluates and builds the same target fine (the OpenClaw fix activation from PR #6142 built on it tonight).
Fix direction
Make the BiDi-wrapped Firefox package override-compatible again (preserve the underlying package's override / use a wrapper that forwards it), or adjust how the package is handed to programs.firefox.package so the module's probe works. Owner: the browser/CDP lane that landed #6146.
Impact tonight
The OpenClaw upgrade activation (PR #6151, nix-openclaw bump) is staged behind this; the gateway itself is up on the PR #6142 generation and unaffected at runtime. Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 Fixed — PR #6173, merged as 1a069c3ff2
Root cause (exact mechanism). #6146 set programs.firefox.package to a bare pkgs.symlinkJoin (home/common firefoxBidi). home-manager's mkFirefoxModule.nix treats a wrapped package (stateVersion ≥ 19.09) as reconfigurable only through its override: line 235 probes lib.functionArgs package.override ? cfg and then calls package.override (old: { cfg = …; extraPolicies = …; pkcs11Modules = … }) (via callWithAppDataDir, which also probes for appDataDir). Stock pkgs.firefox carries that override from wrapFirefox/makeOverridable; a symlinkJoin output is a plain derivation attrset with no override, so the probe itself throws attribute 'override' missing. #6146's verification evaluated the NixOS configurations but never the HM activationPackage target, so it slipped through. Reproduced first on a clean detached worktree of main @ b376590a33 with the exact error from this issue.
Fix shape (no BiDi lost). Both definitions of the wrapper now forward the contract — home/common firefoxBidi and nixos/environment wrapFirefoxBidi (the latter guarded by pkg ? override, so Zen is untouched if its package has none):
joined // {
override = lib.setFunctionArgs
(args: wrap (pkg.override args))
(lib.functionArgs pkg.override);
}
The module's probes see stock firefox's exact function-args shape, its override call lands on the real wrapped package, and the BiDi wrap is re-applied to whatever the override returns. The wrapper itself is unchanged: same symlinkJoin, same flags, same ports (Firefox 19225, Zen 19226).
Evidence.
- The failing eval now returns a drvPath — on the PR branch and again on merged main @
1a069c3ff2 (/nix/store/kdbvw56y…-home-manager-generation.drv).
config.system.build.toplevel.drvPath evaluates for amd, nixos, vm_amd, vm_nixos, user. (The unattended-installer_offline_* attrs error 'nixosSystem' missing identically pre-fix — a pre-existing flake-output shape, unrelated.)
- The module-composed HM firefox package (from
home.packages) builds: bin/firefox execs the module-overridden inner firefox with --remote-debugging-port=19225 prepended, and the inner policies.json is {"policies":{"BlockAboutConfig":true}} at a store path distinct from stock firefox — the module's policy/configPath merges genuinely flow through the passthrough, not a warn-and-drop fallback.
- Zen wrapper builds with
--remote-debugging-port=19226; the environment firefox/zen wrapper outPaths are byte-identical to pre-fix main (x0bsn4cl…-firefox-159.0-bidi, rxq407vq…-zen-beta-1.23.1b-bidi) — the passthrough changes no build outputs.
- Both edited files are
nixfmt-clean; formatting changes confined to the new blocks.
Closing as fixed. The staged switch queue and the OpenClaw activations (#6151/#6162) are unblocked — noted on #6167.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|