dotfiles/nixos/distributed-builds.nix
2021-05-10 19:49:51 +01:00

25 lines
493 B
Nix

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