Repository navigation
feat(nix): de-duplicate the flake into the toolchain SSoT - #651
Merged
Merged
Conversation
Factor a single devTools list as the source of truth shared by the dev-shell now and the image later. Absorb the #545 agent-CLI toolkit (rg, fd, bat, eza, delta, lazygit, zoxide, starship, freeze, expect, neovim, claude). Pin nixpkgs to nixos-25.05 and overlay fast-movers (uv, gh, claude-code) from nixpkgs-unstable. Add reusable lib.mkProjectShell, overlays.default and a packages.devcontainerImage stub, and refresh flake.lock. Refs: #631
Build the flake dev-shell and push its closure to the vig-os Cachix cache via cachix/install-nix-action (upstream CppNix) + cachix/cachix-action. The job is a standalone, non-required workflow with continue-on-error so it never affects the existing CI gate, and adds workflow_dispatch for on-branch validation. Refs: #631
c-vigo
marked this pull request as ready for review
June 23, 2026 09:51
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
Implements T1.1 (#631) — collapses the flake dev-shell and the (future) image tool list into a single
devToolssource of truth and lays the reusable flake outputs the rest of the Nix track depends on.What changed
devToolsSSoT inflake.nix— shared basis for the dev-shell now and the image later (T2.1 — Nix-built devcontainer image (buildLayeredImage), non-publishing #634). Absorbs the [FEATURE] Bake agent-CLI toolkit + Claude Code into image (rg/fd/bat/eza/delta/lazygit/zoxide/starship/freeze/expect/nvim + IS_SANDBOX=1) #545 agent-CLI toolkit (rg,fd,bat,eza,delta,lazygit,zoxide,starship,freeze,expect,nvim) plusclaude, on top of the existing toolchain (just,git,gh,uv,nodejs,jq,tmux,shellcheck,hadolint,taplo,podman).nixpkgspinned tonixos-25.05; newnixpkgs-unstableinput overlaid only for fast-moversuv,gh,claude-code.flake.lockrefreshed.lib.mkProjectShell(downstream repos build the shared shell + extra packages),overlays.default(the fast-mover overlay), and apackages.devcontainerImagestub (placeholder; real image is T2.1/T2.1 — Nix-built devcontainer image (buildLayeredImage), non-publishing #634).nix-cachix.ymlworkflow that builds the dev-shell and pushes its closure to thevig-oscache.tests/test_flake_devshell.pyreads the binary names straight from the flake (nix eval .#devShellTools.<system>) and runsnix develop -c <tool> <version-flag>for each, so it can never drift fromdevTools.How
claudeis providedclaudeis theclaude-codepackage from nixpkgs (binaryclaude, viameta.mainProgram). It is a fast-mover, so it is sourced fromnixpkgs-unstablethroughoverlays.default(unstable2.1.xvs stable1.0.85). No custom fetch/overlay-from-scratch needed — it is packaged cleanly in nixpkgs.Evaluator choice + rationale
Upstream CppNix via
cachix/install-nix-action(SHA-pinnedv31.10.6). It is the most broadly supported installer, pairs natively withcachix/cachix-action, and needs no extra infra. The flake is installer-agnostic — swapping to the Lixlix-installeror the Determinate installer requires zero flake changes, so this decision is cheaply reversible.Cachix wiring
cachix/install-nix-action@…v31.10.6(flakes enabled) →cachix/cachix-action@…v17withname: ${{ vars.CACHIX_CACHE }}andauthToken: ${{ secrets.CACHIX_AUTH_TOKEN }}(token never printed/hardcoded).nix develop --profile dev-profileand pushesnix path-info -r ./dev-profile | cachix push.continue-on-error: true→ existing CI is unaffected.workflow_dispatchplus a push trigger on the epic branch for on-branch validation.check-action-pinspolicy.Verification (local, against the public
vig-oscache)nix flake check→ all checks passed (devShellToolsshows only a benign "unknown flake output" warning).tests/test_flake_devshell.py→ 2 passed — every one of the 23 tools runs insidenix develop(incl.claude --version,nvim --version,rg --version,freeze --version,tmux -V,expect -v).just precommit→ all hooks pass (incl.check-action-pins, agent-identity, yamllint).TDD trail
test(nix):failing parity test committed first (RED).feat(nix):flake SSoT + outputs making it pass (GREEN).ci(nix):non-blocking Cachix workflow.Refs: #631