diff options
author | tv <tv@shackspace.de> | 2015-09-27 17:08:56 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-09-27 17:08:56 +0200 |
commit | ab696f2f04d5ff511d295584802e8a64d1f4d318 (patch) | |
tree | 921300d8b3543c6e5785baec3c93f678d48937c0 | |
parent | 9ff5db3fd6c2d0d54096cebe5f3a7e9a95539268 (diff) |
default.nix: mk-namespace only for dirs w/1systems
-rw-r--r-- | default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/default.nix b/default.nix index 64c69a2f4..1c3341ba7 100644 --- a/default.nix +++ b/default.nix @@ -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> { |