2020-07-19 17:20:21 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-07-19 17:47:40 +00:00
|
|
|
{ lib, ... }:
|
2020-07-19 17:20:21 +00:00
|
|
|
{
|
|
|
|
# Distributed builds!
|
2020-07-19 17:47:40 +00:00
|
|
|
nix.buildMachines = lib.mkAfter [ {
|
2020-07-19 17:20:21 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|