stockholm: import user lib if it exists
This commit is contained in:
parent
85c25d6947
commit
1f39b86dad
@ -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
|
||||
|
@ -1,6 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with import ../4lib { inherit lib pkgs; };
|
||||
with lib;
|
||||
|
||||
let
|
||||
|
||||
out = {
|
||||
|
Loading…
Reference in New Issue
Block a user