depot/ops/nixos/lib/whitby-distributed.nix

21 lines
492 B
Nix
Raw Normal View History

2020-07-19 17:20:21 +00:00
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ pkgs, depot, lib, ... }:
{
# 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
'';
}