mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Rename lib'.listDirectories to lib'.listDirectoryNames
This commit is contained in:
parent
bfac8a286a
commit
dd614f39d5
2 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ lib: {
|
|||
listNixFilesRecursive =
|
||||
dir: dir |> lib.filesystem.listFilesRecursive |> lib.filter (lib.hasSuffix ".nix");
|
||||
|
||||
listDirectories =
|
||||
listDirectoryNames =
|
||||
path: path |> builtins.readDir |> lib.filterAttrs (_: type: type == "directory") |> lib.attrNames;
|
||||
|
||||
genAttrs = f: names: lib.genAttrs names f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue