2018-09-09 19:17:11 +02:00
|
|
|
# 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:
|
2018-10-09 13:53:53 +02:00
|
|
|
((import (toString ./. + "/${owner}/krops.nix") { name = host; }).test {target = "${getEnv "HOME"}/stockholm-build/${host}";});
|
2018-09-09 19:17:11 +02:00
|
|
|
|
|
|
|
in mapAttrs (n: h: build n h.owner.name) ci-systems
|