From a1115de05fe62b7c65b0bfc917bf4d00bd98ab69 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Wed, 8 Jul 2020 18:34:33 +0000 Subject: [PATCH] totoro: use whitby as a build machine --- ops/nixos/totoro/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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"; }