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:
parent
c4f6b54c65
commit
33ba5ea4fc
1 changed files with 5 additions and 16 deletions
21
flake.nix
21
flake.nix
|
@ -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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue