Collection of nix flake templates

readme: add usage guide

yemou.pink 51564b18 7abb17ad

verified
Changed files
+20
+20
readme.md
···
# seed
nix flake templates
+
+
## Usage
+
Run either of the following commands:
+
```sh
+
$ nix flake new -t git+https://tangled.sh/@yemou.pink/seed#<template-name> <directory>
+
$ nix flake init -t git+https://tangled.sh/@yemou.pink/seed#<template-name>
+
```
+
+
Alternatively, add the following to your nix configuration:
+
```nix
+
nix.registry.seed.to = {
+
type = "git";
+
url = "https://tangled.sh/@yemou.pink/seed";
+
};
+
```
+
and then run either of the following commands:
+
```sh
+
$ nix flake new -t seed#<template-name> <directory>
+
$ nix flake init -t seed#<template-name>
+
```