A set of useful Nix Flake templates
Go to file
wuyoli c16a39a213 set up basic infrastructure for all templates 2023-01-23 22:24:43 +01:00
LICENSE Initial commit 2023-01-23 17:23:32 +00:00
README.md set up basic infrastructure for all templates 2023-01-23 22:24:43 +01:00
flake.nix set up basic infrastructure for all templates 2023-01-23 22:24:43 +01:00

README.md

Template-Flake

This flake provides custom flake templates, while still letting you access the official flake templates. It was inspired by this blogpost.

Installation

Run

nix registry add templates ~/path/to/this/repository

This will override the default template-entry in the nix-registry. You will still be able to access the official templates through this template.

Usage

$ mkdir <projectName>
$ cd <projectName>
$ nix flake init -t templates#<nameOfTheTemplate>
$ git init
$ git add .

You will have to replace all occurances of TEMPLATE_NAME with your <project_name>.

Provided Templates