2018-09-09 10:24:13 +02:00
|
|
|
{ name }: rec {
|
|
|
|
|
|
|
|
inherit (import ../krebs/krops.nix { inherit name; })
|
|
|
|
krebs-source
|
|
|
|
lib
|
|
|
|
pkgs
|
|
|
|
;
|
|
|
|
|
|
|
|
source = lib.evalSource [
|
2018-11-28 21:30:46 +01:00
|
|
|
(krebs-source { test = true; })
|
2018-09-09 10:24:13 +02:00
|
|
|
{
|
|
|
|
nixos-config.symlink = "stockholm/tv/1systems/${name}/config.nix";
|
|
|
|
secrets.file = toString ./dummy_secrets;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
# usage: $(nix-build --no-out-link --argstr name HOSTNAME --argstr target PATH -A test)
|
|
|
|
test = { target }: pkgs.krops.writeTest "tv-krops-${name}-ci" {
|
2018-10-09 13:48:52 +02:00
|
|
|
force = true;
|
2018-09-09 10:24:13 +02:00
|
|
|
inherit source target;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|