forked from emily/nixfiles
5 lines
185 B
Nix
5 lines
185 B
Nix
{ lib, ... }: let
|
|
mapModules = builtins.attrNames (lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./.));
|
|
in {
|
|
imports = builtins.map (dir: ./${dir}) mapModules;
|
|
}
|