set up basic infrastructure for all templates
This commit is contained in:
parent
e1b68a857a
commit
c16a39a213
24
README.md
24
README.md
|
@ -1,3 +1,23 @@
|
||||||
# nix_templates
|
# Template-Flake
|
||||||
|
This flake provides custom flake templates, while still letting you access the [official flake templates](https://github.com/NixOS/templates).
|
||||||
|
It was inspired by [this blogpost](https://peppe.rs/posts/novice_nix:_flake_templates/).
|
||||||
|
|
||||||
A set of useful Nix Flake templates
|
## 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
|
||||||
|
|
Loading…
Reference in New Issue