buildbot-stockholm: use krops.nix
This commit is contained in:
parent
c667b2c664
commit
f8a594cff8
|
@ -4,6 +4,14 @@ let
|
||||||
|
|
||||||
hostname = config.networking.hostName;
|
hostname = config.networking.hostName;
|
||||||
|
|
||||||
|
build = pkgs.writeDash "build" ''
|
||||||
|
set -eu
|
||||||
|
export USER="$1"
|
||||||
|
export SYSTEM="$2"
|
||||||
|
$(nix-build $USER/krops.nix --no-out-link --argstr name "$SYSTEM" --argstr target "$HOME/stockholm-build" -A ci)
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||||
|
@ -95,15 +103,9 @@ in
|
||||||
env={
|
env={
|
||||||
"NIX_PATH": "secrets=/var/src/stockholm/null:stockholm=./:/var/src",
|
"NIX_PATH": "secrets=/var/src/stockholm/null:stockholm=./:/var/src",
|
||||||
"NIX_REMOTE": "daemon",
|
"NIX_REMOTE": "daemon",
|
||||||
"dummy_secrets": "true",
|
|
||||||
},
|
},
|
||||||
command=[
|
command=[
|
||||||
"nix-shell", "-I", "stockholm=.", "--run", " ".join(["test",
|
"${build}", user, host
|
||||||
"--user={}".format(user),
|
|
||||||
"--system={}".format(host),
|
|
||||||
"--force-populate",
|
|
||||||
"--target=$LOGNAME@${config.krebs.build.host.name}$HOME/{}".format(user),
|
|
||||||
])
|
|
||||||
],
|
],
|
||||||
timeout=90001,
|
timeout=90001,
|
||||||
workdir='build', # TODO figure out why we need this?
|
workdir='build', # TODO figure out why we need this?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user