Collection of nix flake templates

readme: add usage guide

yemou.pink 51564b18 7abb17ad

verified
Changed files
+20
+20
readme.md
··· 1 1 # seed 2 2 nix flake templates 3 + 4 + ## Usage 5 + Run either of the following commands: 6 + ```sh 7 + $ nix flake new -t git+https://tangled.sh/@yemou.pink/seed#<template-name> <directory> 8 + $ nix flake init -t git+https://tangled.sh/@yemou.pink/seed#<template-name> 9 + ``` 10 + 11 + Alternatively, add the following to your nix configuration: 12 + ```nix 13 + nix.registry.seed.to = { 14 + type = "git"; 15 + url = "https://tangled.sh/@yemou.pink/seed"; 16 + }; 17 + ``` 18 + and then run either of the following commands: 19 + ```sh 20 + $ nix flake new -t seed#<template-name> <directory> 21 + $ nix flake init -t seed#<template-name> 22 + ```