diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-07-06 07:54:51 +0200 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-07-06 07:54:51 +0200 |
| commit | ab2d5d4c3db490f58869d28d2edbbfd3480e0645 (patch) | |
| tree | 3cf014150a697d0c86aa1ba00a88419d29ad0cf8 | |
| parent | 646c68e88e7daf7d33ebec6af4c17674b5d99238 (diff) | |
Add my own templates to a local registry
| -rw-r--r-- | share/system/common.nix | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/share/system/common.nix b/share/system/common.nix index a785573..ab2b6b4 100644 --- a/share/system/common.nix +++ b/share/system/common.nix @@ -2,11 +2,25 @@ # Used mostly for adding substituters and such { ... }: { - nix.settings = { - experimental-features = [ - "nix-command" - "flakes" - ]; - auto-optimise-store = true; + nix = { + settings = { + experimental-features = [ + "nix-command" + "flakes" + ]; + auto-optimise-store = true; + }; + registry = { + "templates" = { + from = { + type = "indirect"; + id = "templates"; + }; + to = { + type = "git"; + url = "https://codeberg.org/miranb/nix-templates"; + }; + }; + }; }; } |
