dotfiles/nixos/distributed-builds.nix

36 lines
750 B
Nix
Raw Normal View History

2020-02-22 11:11:10 +00:00
{ config, pkgs, ... }:
{
2020-05-02 14:44:15 +01:00
programs.ssh.extraConfig = ''
StrictHostKeyChecking=accept-new
'';
2020-02-22 11:11:10 +00:00
nix.buildMachines = [
{
2020-05-02 14:44:15 +01:00
hostName = "brix.lan";
2020-02-22 11:11:10 +00:00
sshUser = "nix-builder";
sshKey = "/home/cyryl/.ssh/id_ed25519";
system = "x86_64-linux";
2020-02-23 20:17:37 +00:00
maxJobs = 2;
2020-05-23 13:57:07 +01:00
speedFactor = 2;
2020-05-02 14:44:15 +01:00
supportedFeatures = [ "kvm" ];
2020-02-22 11:11:10 +00:00
mandatoryFeatures = [ ];
}
{
2020-05-02 14:44:15 +01:00
hostName = "vultr1.local";
2020-02-22 11:11:10 +00:00
sshUser = "nix-builder";
sshKey = "/home/cyryl/.ssh/id_ed25519";
system = "x86_64-linux";
2020-05-02 14:44:15 +01:00
maxJobs = 2;
2020-05-23 13:57:07 +01:00
speedFactor = 1;
2020-05-02 14:44:15 +01:00
supportedFeatures = [ ];
2020-02-22 11:11:10 +00:00
mandatoryFeatures = [ ];
}
];
nix.extraOptions = ''
builders-use-substitutes = true
'';
nix.distributedBuilds = true;
}