dotfiles/nixos/distributed-builds.nix
Cyryl Płotnicki fe4d30f651 nixpkgs-fmt
2021-11-22 19:32:26 +00:00

25 lines
503 B
Nix

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