Skip to content
LogoLogo

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 develop

There 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#python

Hosts that use cattery-modules already have the beans entry.

What every template shares

  • A purr flake with nixpkgs, purr, and git-hooks from FlakeHub.
  • nixfmt, deadnix, and statix as pre-commit hooks, installed when you enter the dev shell and run by nix flake check.
  • nix fmt with nixfmt-tree.
  • An .envrc for direnv.
  • No flake.lock and no LICENSE. 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.