Skip to content

T1.3 — direnv onboarding (nix-direnv) #633

Closed

Description

@c-vigo

Tracking: #625

Context

.envrc uses bare use flake, which re-evaluates on every entry and risks the dev-shell
closure being garbage-collected. nix-direnv adds a GC-rooted, cached evaluation so
re-entry is instant — the non-container onboarding fast path.

Scope

In:

  • Switch .envrc to nix-direnv (GC-rooted, cached).
  • Document the clone → direnv allow flow + the Cachix substituter in CONTRIBUTE.md.

Out:

Tasks

  • Update .envrc to use nix-direnv
  • Document onboarding + Cachix substituter in CONTRIBUTE.md

Acceptance criteria

  • A clean clone + direnv allow yields a working shell in seconds on a warm cache.

Dependencies

Files

  • .envrc
  • CONTRIBUTE.md

Test notes

  • Manual onboarding check; ensure the documented Cachix substituter avoids a from-source
    build on first direnv allow.

Related issues

Activity

  1. added
    feature
    area:image
    area:workspace
    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) (dev-shell/direnv onboarding, commit 4c30fa8). .envrc self-bootstraps a pinned nix-direnv with a use flake fallback; onboarding documented in CONTRIBUTE.md/docs/NIX.md. 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:imagearea:workspacefeature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions