summaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-09-27 17:08:56 +0200
committertv <tv@shackspace.de>2015-09-27 17:08:56 +0200
commitab696f2f04d5ff511d295584802e8a64d1f4d318 (patch)
tree921300d8b3543c6e5785baec3c93f678d48937c0 /default.nix
parent9ff5db3fd6c2d0d54096cebe5f3a7e9a95539268 (diff)
default.nix: mk-namespace only for dirs w/1systems
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix3
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> {