🚀 add distibuted builds

nixos
Moritz Böhme 2022-04-18 17:07:37 +02:00
parent 7f1d9cef9c
commit f62cec2401
No known key found for this signature in database
GPG Key ID: 213820E2795F5CF5
1 changed files with 24 additions and 0 deletions

View File

@ -104,6 +104,30 @@
wantedBy = [ "multi-user.target" ];
};
nix = {
distributedBuilds = true;
buildMachines = [{
hostName = "builder";
system = "x86_64-linux";
maxJobs = 6;
speedFactor = 2;
supportedFeatures = [ "nixos.test" "benchmark" "big-parallel" "kvm" ];
}];
extraOptions = ''
builders-use-substitutes = true
'';
};
programs.ssh.extraConfig = ''
Host builder
Hostname 192.168.0.14
Port 22
User moritz
IdentitiesOnly yes
IdentityFile /etc/ssh/ssh_host_ed25519_key
'';
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave