diff --git a/hosts/nixos-laptop/default.nix b/hosts/nixos-laptop/default.nix index 3042652..d89009d 100644 --- a/hosts/nixos-laptop/default.nix +++ b/hosts/nixos-laptop/default.nix @@ -107,6 +107,22 @@ wantedBy = [ "multi-user.target" ]; }; + nix = { + distributedBuilds = true; + buildMachines = [ + { + hostName = "builder"; + system = "x86_64-linux"; + maxJobs = 6; + speedFactor = 2; + supportedFeatures = [ "nixos.test" "benchmark" "big-parallel" "kvm" ]; + } + ]; + extraOptions = '' + builders-use-substitutes = true + ''; + }; + programs.ssh.extraConfig = '' Host builder Hostname 192.168.0.14