docs(adr): M4 entry — ADR-0012 nix bootstrap wiring + ADR-0013 per-user nix.conf#53
Merged
Conversation
M4 entry ADRs answering the two architectural questions rolled forward from the M3 retrospective: - ADR-0012: Wire LiveNixInstaller from a dedicated `pearlite bootstrap` subcommand, not auto-phase-0 of `apply`. Apply halts at preflight with NIX_NOT_INSTALLED when nix is missing and any host needs Home Manager. Per-host SHA pin lives in the Nickel config under `nix.installer.expected_sha256`. - ADR-0013: `~/.config/nix/nix.conf` stays HM territory; Pearlite writes only the system-wide `/etc/nix/nix.conf` minimum during bootstrap. No `[[managed.nix_conf]]` block; HM's `nix.settings` is the documented per-user surface. Index updated in docs/adr/README.md. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LiveNixInstaller(M3 PR feat(userenv): NixInstaller trait + LiveNixInstaller + MockNixInstaller #45) from a dedicatedpearlite bootstrapsubcommand, not auto-phase-0 ofapply. Apply halts at preflight withNIX_NOT_INSTALLEDwhen nix is missing and any host hashome_manager.enabled = true. Per-host expected SHA-256 lives in the Nickel host config undernix.installer.expected_sha256.~/.config/nix/nix.confstays Home Manager territory. Pearlite writes only the system-wide/etc/nix/nix.confminimum (experimental-features = nix-command flakes) once during bootstrap. No[[managed.nix_conf]]block instate.toml; HM'snix.settingsis the documented per-user surface.Both ADRs answer the two architectural questions rolled forward from the M3 retrospective (
docs/retrospectives/M3.md§"Actions for M4" items 1 and 3). Index updated indocs/adr/README.md. Mirrors the M2 entry pattern (PR #20: ADR-008 + ADR-009).Test plan
scripts/ci/check-spdx.sh— markdown exempt; passespearlite-audit check .— 1 check, 0 violations🤖 Generated with Claude Code