Ruling — Drew, 2026-11-03, superseding the earlier option-B scope for #5027: "no there shouldn't be 2. Just enable openchamber and take that one." One mcpx: the cascade's. This PR is the code-repo step of that fix, at the level the change originates — the mcpx modules live here and pass through opencode → openchamber → this config's pins.
Changes
1. home/common/default.nix — the laptop consumer drops its mcpx pin.
services.mcpx.package = mcpx; (this repo's own pkgs/mcpx build, kept since the hand-rolled unit) is removed. The service now resolves to the cascade default: the fork's packages.<system>.mcpx, via the module wrapper's mkDefault — the same derivation the opencode package's bin/mcpx symlinks to. The daemon runs the one mcpx everything else already links.
- The
mcpx let binding (line 56) stays: the pin was not its last consumer. It is still used by the mcpxKey deploy key, ExecReload, the home.activation.mcpxDeploy handover (mcpx upgrade), and t3's PATH. Those keep driving this repo's build as a CLI while the daemon runs the cascade build — both are mcpx 0.1.0 from this repo's source at different pins. Flagged here rather than silently reworked; repointing the handover machinery is a follow-up decision.
home/common/mcpx-settings.nix is untouched: it is pure config data (services.mcpx.settings), rendered by the module for whichever package runs — it applies unchanged to the cascade mcpx.
2. pkgs/mcpx/modules/home-manager.nix — new option services.mcpx.addPackageToProfile (bool, default true, so no existing consumer's behavior changes). It gates the module's home.packages = [ cfg.package ] contribution.
Why the gate is forced, not optional: with the cascade mcpx as cfg.package, the profile would contain the mcpx package (real bin/mcpx) and the opencode package whose bin/mcpx is a symlink to that very build — and pkgs.buildEnv counts the two as conflicting providers of one subpath. Verified in isolation (paths at today's pins):
pkgs.buildEnv error: two given paths contain a conflicting subpath:
dangling symlink `/nix/store/…-opencode-2.0.30+2d912e0/bin/mcpx' and
`/nix/store/…-mcpx-0.1.0/bin/mcpx'
So the profile's bin/mcpx must come from the opencode package's link alone, and the mcpx package needs an opt-out. (Under the old pin this same mechanism produced deploy round 2's failure, with the standalone build as the second provider.)
Sequencing — why the consumer does not set the new option in this PR
This config's mcpx module arrives through the pin cascade (openchamber f46050fc → opencode 2d912e02 → its mcpx-src pin of this repo), not from this tree. Setting services.mcpx.addPackageToProfile = false here today fails evaluation — The option 'home-manager.users.user.services.mcpx.addPackageToProfile' does not exist — until the pins move. The follow-up PR that bumps this repo's openchamber pin (after a fork mcpx-src bump and an openchamber opencode bump) adds exactly this line to the same services.mcpx block:
addPackageToProfile = false;
That line is written and verified against this branch (see Evidence), so the follow-up is mechanical.
Evidence (laptop amd-6, branch off 22892c316; neither file has drifted on main since)
- Before:
services.mcpx.package = /nix/store/01gdkrm9jvgv1vdxfircc3dilpiv34aa-mcpx-0.1.0 (standalone; at the round-2 pin it was n35r5vj8…). Evaluated home.packages held it and b6mr9fv22rzajmpbnrib633945gmc1df-opencode-2.0.30+2d912e0.
- After this PR (live pins):
services.mcpx.package = /nix/store/kjk6k9m89ynxnmidcqclg0mr3alimlp6-mcpx-0.1.0 — the fork build. readlink on the opencode package's bin/mcpx resolves to exactly kjk6k9…/bin/mcpx.
- Isolated
buildEnv over [kjk6…-mcpx, b6mr9f…-opencode] fails with the bin/mcpx conflict quoted above — the opt-out is required.
- End state (this branch + the
addPackageToProfile = false line, with the chain's mcpx-src input overridden to this tree to simulate the cascade): services.mcpx.package = the cascade build (3d05yffv…-mcpx-0.1.0, the fork build of this tree's source); evaluated home.packages (455 entries) contains no mcpx package at all — exactly one bin/mcpx provider remains, the opencode package's link.
- Generation build with this PR applied (live pins): the
bin/mcpx failure is gone from the profile; the build now stops at a separate, pre-existing bin/opencode collision — this file's consumer wrapper (pkgs.writeShellScriptBin "opencode" …) (wrapping inputs.opencode, pin d66c71f5) vs the cascade's opencode package (2d912e02 via openchamber). Both bin/opencode files are distinct real files, and both packages are present in unmodified main's evaluated home.packages, so the collision pre-dates this change; in deploy round 2 it was masked by the bin/mcpx conflict. Filed separately; it is the remaining blocker for the laptop switch, and it is not this PR's to decide (the wrapper carries the consumer's Cloudflare/Jules env injection and model sync).
Refs #5027 — the mcpx half lands here and in the sequenced pin-cascade follow-up.
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.