Skip to content

T1.1 — De-duplicate the flake into the real SSoT #631

Closed

Description

@c-vigo

Tracking: #625

Context

The flake.nix dev-shell and the Containerfile tool list are maintained independently and
drift; flake.lock is stale. This issue makes a single tool list the source of truth and
lays the reusable flake outputs the rest of the migration builds on.

Scope

In:

  • Factor a single devTools list.
  • Bring the dev-shell to parity with the image toolset.
  • Refresh flake.lock.
  • Switch nixpkgs → pinned nixos-25.05 + a secondary nixpkgs-unstable input overlaid for
    fast-movers (uv, gh).
  • Add lib.mkProjectShell, overlays.default, and a packages.devcontainerImage stub.
  • Provision Cachix (create the binary cache, generate the auth token, add
    CACHIX_AUTH_TOKEN as a repo secret) and wire it + a Nix installer in a new,
    non-blocking
    CI job. This provisioning is a prerequisite for every later track that
    relies on a warm cache (T1.3 — direnv onboarding (nix-direnv) #633, T2.x).
  • Evaluator choice decided here (Lix lix-installer vs Determinate/CppNix action) —
    swappable, no flake changes either way.

Out:

Tasks

  • Factor devTools
  • Channel switch + unstable overlay for uv/gh
  • Add reusable outputs (lib.mkProjectShell, overlays.default, image stub)
  • Provision the Cachix cache + CACHIX_AUTH_TOKEN secret
  • Add Cachix + Nix installer CI job (non-blocking)
  • TDD: test nix develop -c <tool> --version per tool

Acceptance criteria

  • nix develop provides every tool in the toolset.
  • Cachix cache exists and CACHIX_AUTH_TOKEN is configured; push works from CI.
  • Existing CI is unaffected (new job is non-blocking).

Dependencies

Files

  • flake.nix
  • flake.lock
  • .github/workflows/*
  • tests/ (new flake test)

Test notes

  • The per-tool nix develop -c <tool> --version test is the TDD anchor; it also guards
    against future dev-shell/image drift.

Related issues

Activity

  1. added
    feature
    area:ci
    area:image
    on Jun 23, 2026
  2. c-vigo commented on Jul 1, 2026

    @c-vigo
    ContributorAuthor

    Delivered on dev via the Nix-migration epic PR #670 (merged 2026-06-30). flake.nix is the single SSoT: one devTools list with a dev-shell/image parity test (tests/test_flake_devshell.py), pinned nixpkgs + nixpkgs-unstable overlay, overlays.default, and Cachix wired into CI. Closing as complete — this stayed open only because the epic merged to dev (not main) and these T/C-track issues carry Tracking: #625 but were never linked as GitHub sub-issues, so sync-issues auto-close never fired (tracked by #677). Refs #625.

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:imagefeature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions