summaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-11-09 18:52:11 +0100
committertv <tv@krebsco.de>2015-11-09 18:57:20 +0100
commit1f39b86dad2f8ddeb8008f6dda02a6dea1c369a6 (patch)
treeef8978919c556e43adfd62a8a92b7adf6c4d12d8 /default.nix
parent85c25d6947f370c8ab8a304d7371ea9085003d3d (diff)
stockholm: import user lib if it exists
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/default.nix b/default.nix
index c001b8c13..d62e43a1f 100644
--- a/default.nix
+++ b/default.nix
@@ -17,8 +17,10 @@ let stockholm = {
let
lib = import <nixpkgs/lib>;
klib = import ./krebs/4lib { inherit lib; };
- #ulib = import (./. + "/${current-user-name}/4lib") { lib = lib // klib; };
- ulib = {}; # TODO
+ ulib = let
+ path = ./. + "/${current-user-name}/4lib";
+ in lib.optionalAttrs (klib.dir.has-default-nix path)
+ (import path { lib = lib // klib; });
in
builtins // lib // klib // ulib // rec {
# TODO move this stuff