From 188133831433e9d3e2c9e081765ea8f3a59e38e4 Mon Sep 17 00:00:00 2001 From: Romain Paquet Date: Sun, 16 Feb 2025 16:46:47 +0100 Subject: [PATCH] setup remote build on genepi from haze --- hosts/haze/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 + ''; + }; }