dotfiles/nixos/distributed-builds.nix

38 lines
865 B
Nix
Raw Normal View History

{ config, pkgs, ... }: {
2020-05-02 14:44:15 +01:00
programs.ssh.extraConfig = ''
Host vpsfree1
HostName vpsfree1
Port 2222
2020-05-02 14:44:15 +01:00
StrictHostKeyChecking=accept-new
'';
2020-02-22 11:11:10 +00:00
nix.buildMachines = [
{
2021-10-01 10:22:46 +01:00
hostName = "bolty";
2020-02-22 11:11:10 +00:00
sshUser = "nix-builder";
sshKey = "/home/cyryl/.ssh/id_ed25519";
2022-12-08 12:22:01 +00:00
systems = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
2020-02-23 20:17:37 +00:00
maxJobs = 2;
2022-03-06 20:18:50 +00:00
speedFactor = 1;
2022-07-03 18:50:30 +01:00
supportedFeatures = [ "kvm" "big-parallel" ];
2022-03-06 20:18:50 +00:00
mandatoryFeatures = [ ];
}
{
hostName = "vpsfree1";
sshUser = "nix-builder";
sshKey = "/home/cyryl/.ssh/id_ed25519";
2022-07-31 09:35:01 +01:00
systems = [ "x86_64-linux" ];
2022-03-06 20:18:50 +00:00
maxJobs = 2;
2020-05-23 13:57:07 +01:00
speedFactor = 2;
supportedFeatures = [ "kvm" ];
2020-02-22 11:11:10 +00:00
mandatoryFeatures = [ ];
}
];
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;
}