dotfiles/nixos/distributed-builds.nix

31 lines
599 B
Nix
Raw Normal View History

2022-12-19 09:09:08 +00:00
{
config,
pkgs,
...
}: {
2020-05-02 14:44:15 +01:00
programs.ssh.extraConfig = ''
2022-12-19 09:09:08 +00:00
Host vpsfree1
HostName vpsfree1
2022-12-19 09:09:08 +00:00
Port 2222
2020-05-02 14:44:15 +01:00
StrictHostKeyChecking=accept-new
'';
2022-12-19 09:09:08 +00:00
nix.buildMachines = [
{
hostName = "bolty";
sshUser = "nix-builder";
sshKey = "/home/cyryl/.ssh/id_ed25519";
systems = ["i686-linux" "x86_64-linux" "aarch64-linux"];
maxJobs = 2;
speedFactor = 1;
supportedFeatures = ["kvm" "big-parallel"];
mandatoryFeatures = [];
}
];
2020-02-22 11:11:10 +00:00
nix.extraOptions = ''
2021-11-22 19:32:26 +00:00
builders-use-substitutes = true
2020-02-22 11:11:10 +00:00
'';
nix.distributedBuilds = true;
}