8 lines
304 B
Nix
8 lines
304 B
Nix
{...}: {
|
|
imports = ./.
|
|
|> builtins.readDir
|
|
|> builtins.attrsToList
|
|
|> builtins.map ({ name, value }: { type = value; path = ./. "/${name}/flake-module.nix" })
|
|
|> builtins.filter ({ type, path }: type == "directory" && (builtins.pathExists path))
|
|
|> builtins.map ({ name }: name);
|
|
}
|