macos: /nix hydration via a Namespace macOS Application (nix snapshot package) #125
No reviewers
Labels
No labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
key-store/key.store!125
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/macos-nix-snapshot"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
KSE-0186 D8 / founder direction 2026-08-17: macOS runners cannot put
/nixon a cache volume, so hydrate it at VM start from a Namespace macOS Application (nsc macos package→ nscr.io, attached by forgejo-nsc through the Compute APICreateInstanceRequest.Applications), built in the same pipeline as the custom base images.Inert until pinned:
ops/namespace/macos-nix-snapshot/pin.jsonships empty, so the dispatcher YAML only gainsmacos_application_image: ''and the deployed dispatcher (92cd5bb0) keeps today'snsc createpath byte-for-byte. Verified:nix buildofservices.forgejo-nsc.dispatcher.configFilefrom this branch, and forgejo-nscconfig.Load(pinned 92cd5bb0 and the sibling branchclaude/macos-application-request) both accept it.Scripts/namespace-macos-nix-snapshot.sh— producer (aarch64-darwin): resolvesdev-shell:apple-release(+ bashInteractive), signed zstdfile://binary cache + roots/manifest/daemon settings + entrypoint, 3.5 GiB package cap (nsc macos packagetars in memory),nsc macos package --name key-store/macos-nix-snapshot, digest pin (--skip-if-unchanged,--build-only/--package-only,--dry-run).ops/namespace/macos-nix-snapshot/entrypoint.sh— POSIX sh payload: markersstarted → nix-ready → done|failed → finishedunder/var/tmp/key-store-nix-snapshot, Determinate install with the bootstrap's exact invocation,nix.custom.confdaemon settings, rootnix copy --from file://…/snapshot+ gcroots + verify. Holds after the markers (JOB workload: the instance dies when the command exits) until SIGTERM or<state>/release;--no-holdfor manual runs (tested under dash / bash 5 / /bin/sh on the forge: no-hold exit, hold + release, hold + SIGTERM, failure path).Scripts/nix-snapshot-state.sh+ensure-nix.sh/hydrate-nix-binary-cache.sh— job-time readers (never a second installer, wait while pending, skip hydration when covered).namespace-build-images.yml—macos-nix-snapshotjob onnamespace-profile-macos-largebehindvars.KEYSTORE_NAMESPACE_MACOS_NIX_SNAPSHOT_ENABLED/build_macos_nix_snapshot; records the pin as repo variables + artifact.keyStore.deploy.namespaceMacOSNixSnapshotEnable/-Image;common.nixemitsnamespace.macos_application_imageand, only when pinned, name/command/args +macos_application_ready_file=<state>/finished.docs/infrastructure/namespace-macos-nix-snapshot.md— contract + rollout.Rollout after merge: forgejo-nsc
claude/macos-application-request(Compute API create + application) → pin bump → forge deploy → live probe of the compute create → enable the producer → landpin.json.Workflow-orchestrated (2 implementers + 2 adversarial reviewers); reviewer fixes folded in.
🤖 Generated with Claude Code
080b625bedec450ad4a5windows referenced this pull request2026-10-10 18:28:18 +00:00
.lockVault+ lock-now (Windows CNG + in-memory fallback) #370.lockVault+ lock-now (Windows CNG + in-memory fallback) #370.lockVault+ lock-now (Windows CNG + in-memory fallback) #370ios referenced this pull request2026-10-16 10:48:17 +00:00