mirror of
https://github.com/cedev-1/nix-init.git
synced 2026-09-16 17:41:53 +00:00
Zero-boilerplate Nix development environments
- Shell 41.4%
- Go 38.7%
- Nix 19.9%
| .envrc | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| go.mod | ||
| init.sh | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
nix-init
Zero-boilerplate Nix development environments.
nix-init is a tiny CLI tool designed to bootstrap a Nix Flake + Direnv configuration in your current project folder instantly. Stop copy-pasting the same flake.nix over and over again.
Quick Start
Go to your project directory and run:
nix run github:cedev-1/nix-init
Or install with bash:
bash -c "$(wget -qLO - https://raw.githubusercontent.com/cedev-1/nix-init/main/init.sh)"
Done! Your environment is ready.
What does it generate?
When you run nix-init, it creates the following structure:
- flake.nix: A standard flake with a devShell containing git and hello (as a test). It uses a helper function to support multiple architectures automatically.
- .envrc: Contains use flake to hook into direnv.
- .gitignore: Appends .direnv to keep your git repo clean.
Use direnv allow to activate the environment (if you have direnv installed).
License
MIT