fix: nix flake check and packages formatting

This commit is contained in:
Noah Masur
2025-06-21 23:38:37 -04:00
parent ae09296f36
commit 20fc80c259
10 changed files with 69 additions and 40 deletions

View File

@ -6,14 +6,13 @@ lib.pipe (lib.filesystem.listFilesRecursive ./.) [
# Get only files ending in flake.nix
(builtins.filter (name: lib.hasSuffix "flake.nix" name))
# Import each template function
map
(file: rec {
(map (file: rec {
name = builtins.baseNameOf (builtins.dirOf file);
value = {
path = builtins.dirOf file;
description = "${name} template";
};
})
}))
# Convert to an attrset of template name -> template path and description
(builtins.listToAttrs)
]