Repository navigation
docs: record org nix dev-environment strategy ADR - #796
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
docs/rfcs/ADR-nix-devenv-strategy.md— a decision record for the org's Nixdev-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:
nix-direnv(auto oncd, GC-rooted) vs manualnix develop. Complementary.pkgs.mkShellvsnumtide/devshellvscachix/devenv. Exclusive per repo.devenv up-style MinIO/Postgres orchestration, which devenv bundles into axis 2.Decisions recorded
pkgs.mkShell(viamkProjectShell) +nix-direnv.Reject
devenv/numtide-devshellas the shared builder — both interpose their ownpackage-declaration surface between the
devToolsSSoT andPATH, complicating thedev-shell↔image parity test; devenv additionally pays the measured ~165s IFD cold-eval
(chore: sync main into dev #76) and drags its own substituter. Consistent with Adopt Nix/devenv for reproducible, auditable dependency management #27 (already Superseded) and the
[CHORE] Adopt git-hooks.nix with package = pkgs.prek (supersedes #40) #778/build: adopt git-hooks.nix + prek runner, expose checks.pre-commit, and gate flake checks as CI Tier 0 #791 move to
git-hooks.nix+prek.process-compose+juspay/services-flakeas thenix-native
devenv upreplacement (daemon-free, versions from the same nixpkgs lock, GC-rooted,no IFD). Shared
mkProjectServiceshelper + a MinIO+Postgres PoC tracked in feat(flake): mkProjectServices — process-compose + services-flake helper for local dev services #795.Includes two decision matrices (shell-definition; local-services), an Impact/blast-radius section
(authoritative for
vig-os, a recommendation toexo-pet/exomasiblings), and aReconsider ifsection.Also
docs/NIX.md(## See also).CHANGELOG.mdUnreleased entry (### Added), mirrored to the scaffold copy bysync-manifest.Verification
pre-commit run --files …green on all changed docs (pymarkdown, typos, whitespace,generate-docs, sync-manifest, validate-commit-msg).
docs/rfcs/ADR-uv2nix-pyproject-nix.md(frontmatter, TL;DR,Options, matrices, Reconsider-if, References).
Refs #794