diff --git a/package/default.nix b/package/default.nix index 38b64d27..3f21f9d6 100644 --- a/package/default.nix +++ b/package/default.nix @@ -10,4 +10,10 @@ else { }); }) (builtins.attrNames (builtins.readDir ./.))) ) ]; + + imports = lib.pipe ./. [ + builtins.readDir + (lib.filterAttrs (n: ty: ty == "directory" && builtins.pathExists ./${n}/nixos.nix)) + (lib.mapAttrsToList (n: _: ./${n}/nixos.nix)) + ]; }