summaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/default.nix b/default.nix
index d62e43a1f..78923110a 100644
--- a/default.nix
+++ b/default.nix
@@ -19,8 +19,9 @@ let stockholm = {
klib = import ./krebs/4lib { inherit lib; };
ulib = let
path = ./. + "/${current-user-name}/4lib";
- in lib.optionalAttrs (klib.dir.has-default-nix path)
- (import path { lib = lib // klib; });
+ in lib.optionalAttrs
+ (builtins.pathExists path && klib.dir.has-default-nix path)
+ (import path { lib = lib // klib; });
in
builtins // lib // klib // ulib // rec {
# TODO move this stuff