fix: readDir instead of manually defining

i messed up and didnt add the template

so i took a new measure.
This commit is contained in:
Artur Manuel 2024-09-14 00:39:36 +01:00
commit 33ba5ea4fc
Failed to generate hash of commit

View file

@ -1,20 +1,9 @@
{ {
description = "Flake Template Hell"; description = "Flake Template Hell";
outputs = { self }: {
outputs = _: { templates = builtins.mapAttrs (name: _: {
templates = { path = ./templates/${name};
"go" = { description = "Template for ${name} projects.";
path = ./templates/go; }) (builtins.readDir ./templates);
description = "go flake template";
};
"rust" = {
path = ./templates/rust;
description = "rust flake template";
};
"haskell" = {
path = ./templates/haskell;
description = "haskell flake template";
};
};
}; };
} }