summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-07-19 19:31:10 -0400
committerseth <[email protected]>2023-07-19 19:31:10 -0400
commit91e3ea44a21a010f0fb9f3853d97729c6c46285a (patch)
treee6850f645666d37b5e9788c4332b52722835f5fe /flake.nix
parent58e623348c2b17a8403a2d9bc1857404fc372cf3 (diff)
templates: use self instead of builtins.path
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index b76910f..5edef1b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -86,10 +86,7 @@
templates = let
# string -> string -> {}
mkTemplate = name: description: {
- path = builtins.path {
- name = "${name}-template-src";
- path = ./templates/${name};
- };
+ path = "${self}/templates/${name}";
inherit description;
};
in {