Skip to content

feat: add flake.nix for reproducible dev environment#23

Merged
ryanbas21 merged 2 commits into
mainfrom
feat/flake-nix
May 12, 2026
Merged

feat: add flake.nix for reproducible dev environment#23
ryanbas21 merged 2 commits into
mainfrom
feat/flake-nix

Conversation

@ryanbas21
Copy link
Copy Markdown
Owner

Summary

  • Adds flake.nix providing Node 24, pnpm, and lefthook in a Nix dev shell
  • Adds .envrc for automatic direnv activation (use flake)
  • Adds .direnv/ to .gitignore

Usage

# Enter the dev shell manually
nix develop

# Or with direnv (automatic on cd)
direnv allow

Test plan

  • nix flake check passes
  • nix develop drops into a shell with correct node and pnpm versions
  • direnv allow activates the shell automatically

🤖 Generated with Claude Code

ryanbas21 and others added 2 commits May 11, 2026 22:11
Adds a Nix flake that provides Node 24, pnpm, and lefthook in a
dev shell. Includes .envrc for automatic direnv activation and
adds .direnv/ to .gitignore.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Replace flake-utils with lightweight nix-systems/default
- Swap Nix-provided pnpm for corepack (respects packageManager pin)
- Auto-install deps when node_modules is missing or stale
- Add nix fmt via nixfmt
- Gitignore .corepack/ directory

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ryanbas21 ryanbas21 merged commit 4411b94 into main May 12, 2026
1 check passed
@ryanbas21 ryanbas21 deleted the feat/flake-nix branch May 12, 2026 04:22
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