default.nix: mk-namespace only for dirs w/1systems

This commit is contained in:
tv 2015-09-27 17:08:56 +02:00
parent 9ff5db3fd6
commit ab696f2f04

View File

@ -11,7 +11,8 @@ let
out =
(lib.mapAttrs (k: v: mk-namespace (./. + "/${k}"))
(lib.filterAttrs
(k: v: !lib.hasPrefix "." k && v == "directory")
(k: v: !lib.hasPrefix "." k && v == "directory" &&
builtins.pathExists (./. + "/${k}/1systems"))
(builtins.readDir ./.)));
eval = path: import <nixpkgs/nixos/lib/eval-config.nix> {