1 2 3 4 5 6 7 8 9
{lib, ...}: { imports = [ ./gaming ./graphics ./shell ] ++ lib.pipe ./. [builtins.readDir (lib.filterAttrs (n: ty: ty != "directory" && n != "default.nix" && lib.hasSuffix ".nix" n)) (lib.mapAttrsToList (n: _: ./${n}))]; }