From 415d4820b10b0aa6561cc6696ae0bb3f37446580 Mon Sep 17 00:00:00 2001 From: ant Date: Sat, 4 Oct 2025 12:05:26 +0200 Subject: [PATCH] add remote builder for hs --- os/hs/configuration.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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" ]; + } + ]; }