From 00121bf79fcfc7ca439ca27f14ee0a6779667cd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 23 Feb 2020 10:38:22 +0000 Subject: [PATCH] Fine-tune build system --- nixos/boxes/foureighty.nix | 3 +++ nixos/distributed-builds.nix | 6 ++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/nixos/boxes/foureighty.nix b/nixos/boxes/foureighty.nix index 3f205fff..bf73e22f 100644 --- a/nixos/boxes/foureighty.nix +++ b/nixos/boxes/foureighty.nix @@ -43,4 +43,7 @@ ../i3/system.nix ../distributed-builds.nix ]; + + nix.maxJobs = 4; + nix.buildCores = 2; } diff --git a/nixos/distributed-builds.nix b/nixos/distributed-builds.nix index 69b1be6a..f1493fab 100644 --- a/nixos/distributed-builds.nix +++ b/nixos/distributed-builds.nix @@ -6,8 +6,7 @@ sshUser = "nix-builder"; sshKey = "/home/cyryl/.ssh/id_ed25519"; system = "x86_64-linux"; - maxJobs = 2; - speedFactor = 1; + maxJobs = 1; supportedFeatures = [ "kvm" ]; mandatoryFeatures = [ ]; } @@ -16,8 +15,7 @@ sshUser = "nix-builder"; sshKey = "/home/cyryl/.ssh/id_ed25519"; system = "x86_64-linux"; - maxJobs = 4; - speedFactor = 4; + maxJobs = 2; supportedFeatures = [ ]; mandatoryFeatures = [ ]; }