diff --git a/ops/nixos/totoro/default.nix b/ops/nixos/totoro/default.nix index 5f1c81f196..b89c85eb03 100644 --- a/ops/nixos/totoro/default.nix +++ b/ops/nixos/totoro/default.nix @@ -67,5 +67,19 @@ in { networking.firewall.allowedTCPPorts = [ 111 2049 ]; networking.firewall.allowedUDPPorts = [ 111 2049 ]; + # Distributed builds! + nix.buildMachines = [ { + hostName = "whitby"; + system = "x86_64-linux"; + maxJobs = 64; + speedFactor = 2; + supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; + mandatoryFeatures = [ ]; + }] ; + nix.distributedBuilds = true; + nix.extraOptions = '' + builders-use-substitutes = true + ''; + system.stateVersion = "20.03"; }