.files/nix/configurations/vanadium/nixos/remote-builders.nix

31 lines
739 B
Nix

let
supportedFeatures = [
"nixos-test"
"benchmark"
"big-parallel"
"kvm"
];
in
{ pkgs, ... }:
{
nix.buildMachines = [
# NOTE: these hosts need to be put in the .ssh/config of root.
# https://wiki.nixos.org/wiki/Distributed_build#Recommended_setup:_multi-user_Nix_local_%E2%80%93%3E_multi-user_Nix_remote
{
hostName = "pancake";
sshUser = "remotebuild";
speedFactor = 2;
system = pkgs.stdenv.hostPlatform.system;
maxJobs = 1;
inherit supportedFeatures;
}
{
hostName = "hetzner_benchmark";
sshUser = "remotebuild";
speedFactor = 12;
system = pkgs.stdenv.hostPlatform.system;
maxJobs = 3;
inherit supportedFeatures;
}
];
}