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

23 lines
447 B
Nix
Raw Normal View History

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