diff --git a/hosts/haze/default.nix b/hosts/haze/default.nix index 939d165..37f4d85 100644 --- a/hosts/haze/default.nix +++ b/hosts/haze/default.nix @@ -28,4 +28,20 @@ home-manager.extraSpecialArgs = { inherit inputs; }; } ]; + + # Remote builds + nix = { + distributedBuilds = true; + buildMachines = [ + { + sshUser = "nixremote"; + sshKey = "/etc/ssh/ssh_host_ed25519_key"; + systems = [ "aarch64-linux" ]; + hostName = "genepi"; + } + ]; + extraOptions = '' + builders-use-substitutes = true + ''; + }; }