l krops: add support for per host source.nix

This commit is contained in:
lassulus 2018-11-21 04:58:55 +01:00
parent 105a0b6515
commit 5491f83171

View File

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