My (opinionated) nix flake templates for various projects.
Using:
- default: base template, all systems, all attributes defined but empty
- dev-shell: defines a devShell for use with
nix develop
ornix-shell
(through a compatibility shim inshell.nix
)
List available templates:
nix flake show github:k463/nix-templates
Copy default template into a project in current directory:
nix flake init -t github:k463/nix-templates
Copy dev-shell template into a project in current directory:
nix flake init -t github:k463/nix-templates#dev-shell