add ci.nix
This commit is contained in:
parent
516a425eda
commit
10135cbeac
21
ci.nix
Normal file
21
ci.nix
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user