mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 02:40:14 +00:00
fix: nix flake check and packages formatting
This commit is contained in:
@ -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)
|
||||
]
|
||||
|
Reference in New Issue
Block a user