From ab2d5d4c3db490f58869d28d2edbbfd3480e0645 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Sat, 6 Jul 2024 07:54:51 +0200 Subject: Add my own templates to a local registry --- share/system/common.nix | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'share') 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"; + }; + }; + }; }; } -- cgit v1.3.1