11 lines
261 B
Nix
11 lines
261 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
imports =
|
|
let
|
|
dirs = lib.attrNames (lib.filterAttrs (_: v: v == "directory") (builtins.readDir ./.));
|
|
hasDef = name: builtins.pathExists ./${name}/default.nix;
|
|
in
|
|
map (name: ./${name}) (builtins.filter hasDef dirs);
|
|
}
|