Skip to content

[CHORE] Nix flake quality gates: nixfmt formatter + nix flake check in CI #674

Closed

Description

@c-vigo

Chore Type

CI / Build change

Description

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.

Related Issues

Part of #625.

Priority

Medium

Changelog Category

Added

Activity

  1. added
    chore
    priority:medium
    area:ci
    area:image
    on Jun 24, 2026
  2. c-vigo commented on Jun 30, 2026

    @c-vigo
    ContributorAuthor

    Resolved by #680 (8e81d98) on the Nix-migration branch (epic #625, PR #670). Closing as part of post-merge backlog hygiene (#677).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ciarea:imagechorepriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions