dotfiles/nixos/distributed-builds.nix
2020-02-23 10:38:22 +00:00

29 lines
630 B
Nix

{ config, pkgs, ... }:
{
nix.buildMachines = [
{
hostName = "brix.local";
sshUser = "nix-builder";
sshKey = "/home/cyryl/.ssh/id_ed25519";
system = "x86_64-linux";
maxJobs = 1;
supportedFeatures = [ "kvm" ];
mandatoryFeatures = [ ];
}
{
hostName = "vultr1.local";
sshUser = "nix-builder";
sshKey = "/home/cyryl/.ssh/id_ed25519";
system = "x86_64-linux";
maxJobs = 2;
supportedFeatures = [ ];
mandatoryFeatures = [ ];
}
];
nix.extraOptions = ''
builders-use-substitutes = true
'';
nix.distributedBuilds = true;
}