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

25 lines
540 B
Nix
Raw Permalink 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 = [ ];
} {
hostName = "mac-mini";
system = "aarch64-darwin";
maxJobs = 4;
speedFactor = 1;
supportedFeatures = [ ];
mandatoryFeatures = [ ];
}];
nix.distributedBuilds = true;
}