From 75f28ac0734a7aedcae95e4f1d6fc749808e1b21 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sun, 26 Jun 2022 22:38:01 +0200 Subject: Luna: Enable distributed builds --- hosts/luna/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'hosts') diff --git a/hosts/luna/default.nix b/hosts/luna/default.nix index 23f4a07..d974306 100644 --- a/hosts/luna/default.nix +++ b/hosts/luna/default.nix @@ -34,5 +34,22 @@ environment.systemPackages = with pkgs; [ xf86_input_cmt #chromebook touchpad drivers ]; + + nix = { + distributedBuilds = true; + # optional, useful when the builder has a faster internet connection than yours + extraOptions = "builders-use-substitutes = true"; + buildMachines = [{ + hostName = "builder"; + system = "x86_64-linux"; + # if the builder supports building for multiple architectures, + # replace the previous line by, e.g., + # systems = ["x86_64-linux" "aarch64-linux"]; + maxJobs = 4; + speedFactor = 2; + supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; + mandatoryFeatures = [ ]; + }]; + }; } -- cgit 1.4.1