diff --git a/modules/programs/distributed-build/offload.nix b/modules/programs/distributed-build/offload.nix index 073c888..8347cd0 100644 --- a/modules/programs/distributed-build/offload.nix +++ b/modules/programs/distributed-build/offload.nix @@ -1,10 +1,12 @@ { pkgs, ... }: -{ +let + network = import ../../network.nix; +in { nix = { distributedBuilds = true; buildMachines = [{ - hostName = "mikulinux"; + hostName = "miku"; systems = [ "x86_64-linux" "i686-linux" ]; maxJobs = 4; speedFactor = 2; @@ -13,8 +15,8 @@ }; programs.ssh.extraConfig = '' -Host mikulinux - HostName 192.168.178.38 +Host miku + HostName ${network.miku} User builder IdentitiesOnly yes IdentityFile /root/.ssh/id_builder