From f54bb71e7dd16a41559502acacbbe206e7edb337 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Mon, 21 Oct 2024 11:20:51 +0200 Subject: [PATCH] feat: setup distributed builds --- hosts/nuos/configuration.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hosts/nuos/configuration.nix b/hosts/nuos/configuration.nix index 1665fc4..23edf61 100644 --- a/hosts/nuos/configuration.nix +++ b/hosts/nuos/configuration.nix @@ -88,6 +88,20 @@ }; }; + nix = { + buildMachines = [{ + hostName = "lambdaOS"; + system = "x86_64-linux"; + protocol = "ssh-ng"; + maxJobs = 4; + speedFactor = 3; + supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; + mandatoryFeatures = [ ]; + }]; + distributedBuilds = true; + settings.builders-use-substitutes = true; + }; + systemd.services."update-from-flake" = { path = with pkgs; [ nixos-rebuild