stockholm/ci.nix

25 lines
748 B
Nix
Raw Normal View History

2018-11-13 21:30:04 +01:00
# usage: nix-instantiate --eval --json --read-write-mode --strict ci.nix | jq .
2018-09-09 19:17:11 +02:00
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
2021-12-23 01:23:06 +01:00
({ config, ... }: {
krebs.build.host = config.krebs.hosts.test-all-krebs-modules;
})
2018-09-09 19:17:11 +02:00
];
}];
}
;
ci-systems = filterAttrs (_: v: v.ci) system.config.krebs.hosts;
build = host: owner:
2019-01-03 21:49:05 +01:00
((import (toString ./. + "/${owner}/krops.nix") { name = host; }).test {target = "${getEnv "HOME"}/stockholm-build";});
2018-09-09 19:17:11 +02:00
in mapAttrs (n: h: build n h.owner.name) ci-systems