develop-templates
develop-templates is a flake of nix flake init templates. Language templates give you a
dev shell with the toolchain and pre-commit hooks. The configuration templates give you a
NixOS, nix-darwin, and Home Manager setup built on purr and
cattery, and a repository for age-encrypted secrets.
mkdir my-project && cd my-project
nix flake init -t github:nixcafe/develop-templates#rust
git init && git add -A
nix developThere is no default template, so always pass a name. Register a short alias once and
use it everywhere:
nix registry add beans github:nixcafe/develop-templates
nix flake init -t beans#pythonHosts that use cattery-modules already have the beans entry.
What every template shares
- A purr flake with
nixpkgs,purr, andgit-hooksfrom FlakeHub. nixfmt,deadnix, andstatixas pre-commit hooks, installed when you enter the dev shell and run bynix flake check.nix fmtwithnixfmt-tree.- An
.envrcfor direnv. - No
flake.lockand noLICENSE. The first Nix command writes the lock file, and the license is your choice.
The purr and purr-flake-parts templates are the exception. They are the minimal
starter flakes from the purr repository and have no dev shell or hooks.