Zero-boilerplate Nix development environments
  • Shell 41.4%
  • Go 38.7%
  • Nix 19.9%
Find a file
2026-01-13 21:02:07 +01:00
.envrc init: nix-init project 2025-12-07 00:09:31 +01:00
.gitignore init: nix-init project 2025-12-07 00:09:31 +01:00
flake.lock init: nix-init project 2025-12-07 00:09:31 +01:00
flake.nix init: nix-init project 2025-12-07 00:09:31 +01:00
go.mod init: nix-init project 2025-12-07 00:09:31 +01:00
init.sh feat: bash script 2026-01-13 21:02:07 +01:00
LICENSE Add MIT License to the project 2025-12-07 00:12:12 +01:00
main.go init: nix-init project 2025-12-07 00:09:31 +01:00
README.md feat: bash script 2026-01-13 21:02:07 +01:00

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