You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[CHORE] Nix flake quality gates: nixfmt formatter + nix flake check in CI #674
area:ciCI/CD, GitHub Actions, workflowsarea:imageContainer image, Dockerfile, buildchoreGeneral tasks (e.g. update dependencies, contact a manufacturer, read a paper)priority:mediumImportant but not urgent
flake.nix (≈396 lines) is now the toolchain SSoT, but the flake itself is
ungated:
No formatter: there is no formatter flake output and no nix formatter in
the pre-commit hooks, so flake.nix can drift in style with nothing to catch
it.
No checks / no nix flake check in CI: there is no checks output and CI
never runs nix flake check; the flake is only validated implicitly by nix build .#devcontainerImage. Eval errors or dev-shell/image drift are only
caught late (or not at all).
Add lightweight quality gates so the SSoT stays formatted and evaluable.
Acceptance Criteria
flake.formatter.<system> is set (e.g. nixfmt-rfc-style) and nix fmt
is idempotent on flake.nix
A nixfmt pre-commit hook fails on unformatted *.nix
flake.checks.<system> exposes at least flake evaluation + the existing
dev-shell parity test (tests/test_flake_devshell.py)
nix flake check runs in CI (.github/workflows/ci.yml, project-checks)
and fails on format/parity drift
TDD compliance (see .claude/skills/tdd/SKILL.md)
Implementation Notes
Target files: flake.nix, .pre-commit-config.yaml, .github/workflows/ci.yml.
Keep CI edits confined to ci.yml — the sibling in-container smoke-test issue
edits nix-image.yml — so the two follow-up PRs do not conflict on a shared
workflow file.
area:ciCI/CD, GitHub Actions, workflowsarea:imageContainer image, Dockerfile, buildchoreGeneral tasks (e.g. update dependencies, contact a manufacturer, read a paper)priority:mediumImportant but not urgent
Activity
test: add flake formatter + checks quality-gate tests
feat(nix): add flake formatter + checks and a nix flake check CI gate
test: add flake formatter + checks quality-gate tests
feat(nix): add flake formatter + checks and a nix flake check CI gate
docs(nix): correct the stale nixos-25.05 channel comment
feat(nix): add flake formatter + checks and a nix flake check CI gate (…
c-vigo commentedon Jun 30, 2026
Resolved by #680 (8e81d98) on the Nix-migration branch (epic #625, PR #670). Closing as part of post-merge backlog hygiene (#677).
chore: release 0.4.0 (#195)
chore: release 0.4.0 (#813)