stockholm/ci.nix

22 lines
629 B
Nix
Raw Normal View History

2018-11-13 20:30:04 +00:00
# usage: nix-instantiate --eval --json --read-write-mode --strict ci.nix | jq .
2018-09-09 17:17:11 +00: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
];
}];
}
;
ci-systems = filterAttrs (_: v: v.ci) system.config.krebs.hosts;
build = host: owner:
2018-11-27 04:14:39 +00:00
((import (toString ./. + "/${owner}/krops.nix") { name = host; }).test {target = "${getEnv "HOME"}/stockholm-tmp";});
2018-09-09 17:17:11 +00:00
in mapAttrs (n: h: build n h.owner.name) ci-systems