From a71cb99af867acf6453ccb765ea7b170ce4e239f Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 19 Jul 2020 18:47:40 +0100 Subject: [PATCH] nixos/porcorosso: add totoro as a builder --- ops/nixos/lib/whitby-distributed.nix | 4 ++-- ops/nixos/porcorosso/default.nix | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ops/nixos/lib/whitby-distributed.nix b/ops/nixos/lib/whitby-distributed.nix index 2c222bc6e6..c5194195b5 100644 --- a/ops/nixos/lib/whitby-distributed.nix +++ b/ops/nixos/lib/whitby-distributed.nix @@ -2,10 +2,10 @@ # # SPDX-License-Identifier: Apache-2.0 -{ pkgs, depot, lib, ... }: +{ lib, ... }: { # Distributed builds! - nix.buildMachines = [ { + nix.buildMachines = lib.mkAfter [ { hostName = "whitby"; system = "x86_64-linux"; maxJobs = 64; diff --git a/ops/nixos/porcorosso/default.nix b/ops/nixos/porcorosso/default.nix index 786d90ddf9..f93d91d3a3 100644 --- a/ops/nixos/porcorosso/default.nix +++ b/ops/nixos/porcorosso/default.nix @@ -226,6 +226,15 @@ in { host all all ::1/128 trust ''; + nix.buildMachines = [ { + hostName = "totoro"; + system = "x86_64-linux"; + maxJobs = 4; + speedFactor = 2; + supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; + mandatoryFeatures = [ ]; + }]; + # This value determines the NixOS release with which your system is to be # compatible, in order to avoid breaking some software such as database