12 lines
279 B
Nix
12 lines
279 B
Nix
{ lib }:
|
|
|
|
{
|
|
getDirsInDir =
|
|
path: let
|
|
dirs = builtins.readDir path;
|
|
in
|
|
builtins.filter (name: dirs.${name} == "directory") (builtins.attrNames dirs);
|
|
|
|
getModuleImports = builtins.attrNames (builtins.removeAttrs (builtins.readDir ./.) ["default.nix"]);
|
|
}
|
|
|