summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-11-21 04:58:55 +0100
committerlassulus <lassulus@lassul.us>2018-11-21 04:58:55 +0100
commit5491f83171e5fb1c5cb62d8a763d19e584e23a20 (patch)
tree800ee0922e9402312def61442a1f058641b0c448 /lass
parent105a0b6515b2e193b883ee8fb00d8454b8049588 (diff)
l krops: add support for per host source.nix
Diffstat (limited to 'lass')
-rw-r--r--lass/krops.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/lass/krops.nix b/lass/krops.nix
index 758c2a7d4..c2669c8f2 100644
--- a/lass/krops.nix
+++ b/lass/krops.nix
@@ -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 {