nix-setup
Installation
SKILL.md
Nix Setup Skill
Reference for setting up reproducible development environments. Two paths share the same Nix backend:
- devbox — thin layer over Nix;
devbox.jsonis concise JSON. Default for new projects. - pure flake.nix — full Nix expression power; per-language templates ship under
assets/forcp-and-go bootstrap.
Decision: devbox or pure flake?
devbox runs on top of Nix (uses Nix store + nixpkgs internally), so picking one or the other is a UX choice, not a stack choice. Defaults for mizchi/:
| When | Use |
|---|---|
| New project, standard nixpkgs packages cover the need | devbox |
Need a custom derivation, input override, overlay, or buildNpmPackage |
flake.nix |
Need flake.lock as the authoritative reproducibility source (vs devbox.lock) |
flake.nix |
| Targeting Claude Code web / sandboxed env where the devbox installer is too heavy | flake.nix with setup_nix.sh |
| Already own a working flake; team uses direnv | flake.nix |