summaryrefslogtreecommitdiff
path: root/templates/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-07-22 03:38:49 -0400
committerseth <[email protected]>2024-07-22 03:38:55 -0400
commit5eb3ff7f01f67ba3c5d926f1a1247108bcfcd796 (patch)
tree71df1f2e6087c9155715ccf023b3ad52626e41f5 /templates/default.nix
parent3e9ee17994ef6956aa4396a02ef8db4d60a978f9 (diff)
templates: use self for path
fixes random errors about the path not existing
Diffstat (limited to 'templates/default.nix')
-rw-r--r--templates/default.nix7
1 files changed, 2 insertions, 5 deletions
diff --git a/templates/default.nix b/templates/default.nix
index 1c67349..62f535e 100644
--- a/templates/default.nix
+++ b/templates/default.nix
@@ -1,11 +1,8 @@
+self:
let
# string -> string -> {}
toTemplate = name: description: {
- path = builtins.path {
- path = ./${name};
- name = "${name}-template";
- };
-
+ path = self + "/templates/" + name;
inherit description;
};
in