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";
|
||||
|
||||
outputs = _: {
|
||||
templates = {
|
||||
"go" = {
|
||||
path = ./templates/go;
|
||||
description = "go flake template";
|
||||
};
|
||||
"rust" = {
|
||||
path = ./templates/rust;
|
||||
description = "rust flake template";
|
||||
};
|
||||
"haskell" = {
|
||||
path = ./templates/haskell;
|
||||
description = "haskell flake template";
|
||||
};
|
||||
};
|
||||
outputs = { self }: {
|
||||
templates = builtins.mapAttrs (name: _: {
|
||||
path = ./templates/${name};
|
||||
description = "Template for ${name} projects.";
|
||||
}) (builtins.readDir ./templates);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue