l krops: add support for per host source.nix
This commit is contained in:
parent
105a0b6515
commit
5491f83171
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user