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

21 lines
447 B
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ lib, ... }:
{
# Distributed builds!
nix.buildMachines = lib.mkAfter [ {
hostName = "mac-mini";
system = "x86_64-darwin";
maxJobs = 4;
speedFactor = 1;
supportedFeatures = [ ];
mandatoryFeatures = [ ];
}];
nix.distributedBuilds = true;
nix.extraOptions = ''
builders-use-substitutes = true
'';
}