Skip to content

docs(nix): add consolidated docs/NIX.md reference - #681

Merged
c-vigo merged 1 commit into
feature/625-nix-claude-migrationfrom
docs/255-consolidated-nix-doc
Jun 24, 2026
Merged

c-vigo merged 1 commit into
feature/625-nix-claude-migrationfrom
docs/255-consolidated-nix-doc

Conversation

@c-vigo

@c-vigo c-vigo commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds docs/NIX.md, a single consolidated onboarding/architecture reference for
the Nix flake. Until now the flake's design rationale lived only as inline
comments in flake.nix plus the downstream-focused docs/NIX2CONTAINER.md;
there was no single doc covering the flake as the toolchain SSoT.

All content is sourced by reading flake.nix, .envrc, CONTRIBUTE.md,
renovate.json, tests/test_flake_devshell.py, docs/NIX2CONTAINER.md, and
docs/CONTAINER_SECURITY.md — nothing invented.

Sections

  • The flake as the toolchain SSoT (devTools) + dev-shell ↔ image parity guard (tests/test_flake_devshell.py)
  • Stable/unstable channel split (nixos-26.05 + nixpkgs-unstable) and the fast-mover overlay (uv, gh, claude-code); uv/managed-CPython note
  • The Nix-built image (dockerTools.buildLayeredImage): bit-reproducibility, multi-arch, imageTools contents
  • Evaluator decision (CppNix vs Lix) and pre-commit vs prek (summarizing the flake's inline rationale)
  • Cachix (vig-os) substituter + direnv allow onboarding flow
  • How nixpkgs bumps flow (Renovate nix manager + lockFileMaintenance + the vulnix before/after requirement)
  • Publish-cutover pointer (T4.1 — Publish-cutover to the Nix image (GATED) #639)
  • Cross-links to CONTRIBUTE.md, docs/NIX2CONTAINER.md, docs/CONTAINER_SECURITY.md, flake.nix

Notes

  • docs/NIX.md is authored directly (not a generated file); the generate-docs hook does not target it.
  • No template edits — chose the conflict-free option (the CONTRIBUTE.md fast path already covers onboarding), avoiding overlap with the sibling template PR.
  • CHANGELOG: one new ### Added bullet; the sync-manifest hook mirrored it to assets/workspace/.devcontainer/CHANGELOG.md.
  • pymarkdown + all pre-commit hooks pass.

Closes #255

@c-vigo
c-vigo merged commit 85cc6ba into feature/625-nix-claude-migration Jun 24, 2026
10 checks passed
@c-vigo
c-vigo deleted the docs/255-consolidated-nix-doc branch June 24, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant