summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-09-09 19:17:11 +0200
committerlassulus <lass@blue.r>2018-09-09 19:17:11 +0200
commit10135cbeacd74a36971582d421742f576528606d (patch)
treeb5691edec2c2cd41014214ad8ee00d9e7361bd7a
parent516a425edad3a86c95fdadf9d777d43c79dd6d08 (diff)
add ci.nix
-rw-r--r--ci.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/ci.nix b/ci.nix
new file mode 100644
index 000000000..6d2378759
--- /dev/null
+++ b/ci.nix
@@ -0,0 +1,21 @@
+# usage: nix-instantiate --eval --strict --json ./ci.nix
+with import ./lib;
+let
+ pkgs = import <nixpkgs> { overlays = [ (import ./submodules/nix-writers/pkgs) ]; };
+ system =
+ import <nixpkgs/nixos/lib/eval-config.nix> {
+ modules = [{
+ imports = [
+ ./krebs
+ ./krebs/2configs
+ ];
+ }];
+ }
+ ;
+
+ ci-systems = filterAttrs (_: v: v.ci) system.config.krebs.hosts;
+
+ build = host: owner:
+ ((import (toString ./. + "/${owner}/krops.nix") { name = host; }).test {target = "${getEnv "HOME"}/stockholm-build";});
+
+in mapAttrs (n: h: build n h.owner.name) ci-systems