Thanks to visit codestin.com
Credit goes to github.com

Skip to content

wwmoraes/templates

templates

quickstarter files for projects to skip boilerplace copypasta hell

GitHub Issues GitHub Pull Requests

License

📝 Table of Contents

🧐 About

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.

🎈 Usage

# use the default template (meta)
nix flake init -t github:wwmoraes/templates

# use the golang template
nix flake init -t github:wwmoraes/templates#golang

If 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#golang

How does it work?

The 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.

About

Project golden paths ✨

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks