From 9b4b098ab661f9abc16453be969606311a379065 Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Mon, 20 Jul 2026 21:30:38 -0400 Subject: local buildmachine and use distributed builds --- hosts/nepsis/configuration.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/hosts/nepsis/configuration.nix b/hosts/nepsis/configuration.nix index 36dc8b8..d6ec03d 100644 --- a/hosts/nepsis/configuration.nix +++ b/hosts/nepsis/configuration.nix @@ -57,9 +57,31 @@ Host vps Hostname 170.205.37.7 Port 2222 + Host builder + HostName 192.168.1.120 + StrictHostKeyChecking=accept-new + IdentitiesOnly yes + IdentityFile /root/.ssh/nixremote + User nixremote ''; }; + nix.buildMachines = [ + { + hostName = "builder"; + system = "x86_64-linux"; + protocol = "ssh-ng"; + maxJobs = 1; + speedFactor = 2; + supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"]; + mandatoryFeatures = []; + } + ]; + nix.distributedBuilds = true; + nix.extraOptions = '' + builders-use-substitutes = true + ''; + # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; -- cgit v1.3.1