l krops: make source.nix overrideable

This commit is contained in:
lassulus 2019-10-14 16:00:07 +02:00
parent 66816ee636
commit 539f4f09fc

View File

@ -5,11 +5,6 @@
pkgs pkgs
; ;
host-source = if lib.pathExists (./. + "/1systems/${name}/source.nix") then
import (./. + "/1systems/${name}/source.nix") { inherit lib pkgs; }
else
{}
;
source = { test }: lib.evalSource ([ source = { test }: lib.evalSource ([
(krebs-source { test = test; }) (krebs-source { test = test; })
@ -24,7 +19,12 @@
}; };
}; };
} }
] ++ (lib.optional (! test) host-source)); (if lib.pathExists (./. + "/1systems/${name}/source.nix") then
import (./. + "/1systems/${name}/source.nix") { inherit lib pkgs test; }
else
{}
)
]);
in { in {