quickstarter files for projects to skip boilerplace copypasta hell
Yet another nix flake template repository.
This evolved from my original poor man's GitHub gist + shell script flow to init/update projects. Nix templates lacks templating, which I could solve using envsubst like the original solution; however there's great value in the simplicity of static files that contains a working sample instead of overly-parameterized ones.
# use the default template (meta)
nix flake init -t github:wwmoraes/templates
# use the golang template
nix flake init -t github:wwmoraes/templates#golangIf you plan to use those templates often then you might want to add it to your registry:
nix registry add wwmoraes github:wwmoraes/templates
nix flake init -t wwmmoraes#golangThe command nix flake init copies files from a flake template definition to
the current directory. It does NOT override files, copying only new files.
Each subfolder in this repository is named after a template and contains the
files copied. The templates.nix file contains the configuration for each.
For more information check the upstream docs at https://nix.dev/manual/nix/2.28/command-ref/new-cli/nix3-flake-init.html.