flake-template-hell/flake.nix
Artur Manuel 33ba5ea4fc
fix: readDir instead of manually defining
i messed up and didnt add the template

so i took a new measure.
2024-09-14 00:39:36 +01:00

9 lines
253 B
Nix

{
description = "Flake Template Hell";
outputs = { self }: {
templates = builtins.mapAttrs (name: _: {
path = ./templates/${name};
description = "Template for ${name} projects.";
}) (builtins.readDir ./templates);
};
}