stockholm: import user lib if it exists
This commit is contained in:
parent
85c25d6947
commit
1f39b86dad
@ -17,8 +17,10 @@ let stockholm = {
|
|||||||
let
|
let
|
||||||
lib = import <nixpkgs/lib>;
|
lib = import <nixpkgs/lib>;
|
||||||
klib = import ./krebs/4lib { inherit lib; };
|
klib = import ./krebs/4lib { inherit lib; };
|
||||||
#ulib = import (./. + "/${current-user-name}/4lib") { lib = lib // klib; };
|
ulib = let
|
||||||
ulib = {}; # TODO
|
path = ./. + "/${current-user-name}/4lib";
|
||||||
|
in lib.optionalAttrs (klib.dir.has-default-nix path)
|
||||||
|
(import path { lib = lib // klib; });
|
||||||
in
|
in
|
||||||
builtins // lib // klib // ulib // rec {
|
builtins // lib // klib // ulib // rec {
|
||||||
# TODO move this stuff
|
# TODO move this stuff
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with import ../4lib { inherit lib pkgs; };
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
out = {
|
out = {
|
||||||
|
Loading…
Reference in New Issue
Block a user