nixfiles/modules/default.nix
2024-09-30 13:23:17 +02:00

5 lines
185 B
Nix

{ lib, ... }: let
mapModules = builtins.attrNames (lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./.));
in {
imports = builtins.map (dir: ./${dir}) mapModules;
}