sneeuwvlok/clanServices/flake-module.nix
2026-03-30 10:29:26 +02:00

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);
}