default.nix: mk-namespace only for dirs w/1systems
This commit is contained in:
parent
9ff5db3fd6
commit
ab696f2f04
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user