dotfiles/nixos/distributed-builds.nix

26 lines
575 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
'';
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;
}