nix/nixos/common/modules/remote-builders.nix

19 lines
660 B
Nix
Raw Normal View History

2023-10-06 12:41:55 +02:00
{
2023-10-07 09:18:24 +02:00
# Allows 'root' to ssh for remote builds
2023-10-07 09:44:34 +02:00
users.users.root.openssh.authorizedKeys.keyFiles = [ ../../../keys/ssh/keys.txt ];
2023-10-07 08:34:58 +02:00
nix.buildMachines = [
2023-10-06 12:41:55 +02:00
{
2023-10-06 12:42:26 +02:00
hostName = "nixos-vm-01"; # Only availalbe on the Headscale network
2023-10-07 08:54:59 +02:00
sshUser = "albert";
2023-10-06 12:41:55 +02:00
protocol = "ssh-ng";
maxJobs = 4;
speedFactor = 2;
2023-10-07 08:54:59 +02:00
systems = [ "x86_64-linux" "aarch64-linux" ];
2023-10-06 12:41:55 +02:00
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ];
}
];
2023-10-07 08:34:58 +02:00
nix.distributedBuilds = true;
nix.extraOptions = ''builders-use-substitutes = true'';
2023-10-06 12:41:55 +02:00
}