diff --git a/os/hs/configuration.nix b/os/hs/configuration.nix index 0647999..f170691 100644 --- a/os/hs/configuration.nix +++ b/os/hs/configuration.nix @@ -143,4 +143,18 @@ in { enable = true; secretKeyFile = "/var/cache-priv-key.pem"; }; + + nix.distributedBuilds = true; + nix.settings.builders-use-substitutes = true; + + nix.buildMachines = [ + { + hostName = "192.168.1.2"; + protocol = "ssh-ng"; + sshUser = "remotebuild"; + sshKey = "/home/ant/.ssh/id_ed25519"; + system = pkgs.stdenv.hostPlatform.system; + supportedFeatures = [ "nixos-test" "big-parallel" "kvm" ]; + } + ]; }