Skip to content

docs: record org nix dev-environment strategy ADR - #796

Merged
c-vigo merged 1 commit into
devfrom
feature/794-nix-devenv-strategy
Jul 1, 2026
Merged

c-vigo merged 1 commit into
devfrom
feature/794-nix-devenv-strategy

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

What

Adds docs/rfcs/ADR-nix-devenv-strategy.md — a decision record for the org's Nix
dev-environment strategy, prompted by exo-pet/exo-fleet#76
(devenv→mkShell port) and its "compare devenv / devshell / mkshell / direnv" thread.

The ADR's core move: that four-way question is a category error. It conflates
three separable axes:

  1. Activation — nix-direnv (auto on cd, GC-rooted) vs manual nix develop. Complementary.
  2. Shell definition — pkgs.mkShell vs numtide/devshell vs cachix/devenv. Exclusive per repo.
  3. Local services — devenv up-style MinIO/Postgres orchestration, which devenv bundles into axis 2.

Decisions recorded

Includes two decision matrices (shell-definition; local-services), an Impact/blast-radius section
(authoritative for vig-os, a recommendation to exo-pet/exoma siblings), and a
Reconsider if section.

Also

  • Cross-link from docs/NIX.md (## See also).
  • CHANGELOG.md Unreleased entry (### Added), mirrored to the scaffold copy by sync-manifest.

Verification

  • pre-commit run --files … green on all changed docs (pymarkdown, typos, whitespace,
    generate-docs, sync-manifest, validate-commit-msg).
  • ADR matches the house style of docs/rfcs/ADR-uv2nix-pyproject-nix.md (frontmatter, TL;DR,
    Options, matrices, Reconsider-if, References).

Refs #794

Add docs/rfcs/ADR-nix-devenv-strategy.md ratifying pkgs.mkShell (via
mkProjectShell) + nix-direnv and rejecting devenv/numtide-devshell as the
shared builder, on the dev-shell<->image parity-SSoT constraint plus devenv's
~165s IFD cold-eval. Reframe the "direnv vs devenv vs devshell vs mkshell"
question as three separable axes (activation / shell definition / local
services) and adopt process-compose + services-flake for local services, with
the shared mkProjectServices helper tracked in #795. Cross-link from
docs/NIX.md and record under CHANGELOG Unreleased.

Refs: #794
@c-vigo
c-vigo enabled auto-merge July 1, 2026 08:38
@c-vigo
c-vigo merged commit dc88780 into dev Jul 1, 2026
13 checks passed
@c-vigo
c-vigo deleted the feature/794-nix-devenv-strategy branch July 1, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant