nixos-config/modules/programs/distributed-build/offload.nix

25 lines
483 B
Nix
Raw Normal View History

2021-07-29 20:21:51 +00:00
{ pkgs, ... }:
2021-07-30 09:18:27 +00:00
let
network = import ../../network.nix;
in {
2021-07-29 20:21:51 +00:00
nix = {
distributedBuilds = true;
buildMachines = [{
2021-07-30 09:18:27 +00:00
hostName = "miku";
2021-07-29 20:21:51 +00:00
systems = [ "x86_64-linux" "i686-linux" ];
maxJobs = 4;
speedFactor = 2;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
}];
};
programs.ssh.extraConfig = ''
2021-07-30 09:18:27 +00:00
Host miku
HostName ${network.miku}
2021-07-29 20:21:51 +00:00
User builder
IdentitiesOnly yes
IdentityFile /root/.ssh/id_builder
'';
}