From 3b03b4bb949cd97e00d38a354b65bb1a2538ba85 Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Fri, 26 Jan 2024 14:35:16 +0100 Subject: [PATCH] Remote builders --- modules/nix/default.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/modules/nix/default.nix b/modules/nix/default.nix index 4025138..0b14b26 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -58,5 +58,27 @@ path = "/home/${config.ccr.username}/.config/emacs"; }; }; + + distributedBuilds = true; + buildMachines = [ + { + hostName = "sisko.fleet"; + system = "aarch64-linux"; + maxJobs = 4; + supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"]; + protocol = "ssh-ng"; + sshUser = "root"; + sshKey = "/home/${config.ccr.username}/.ssh/id_rsa"; + } + { + hostName = "mac.staging.mlabs.city"; + system = "x86_64-darwin"; + maxJobs = 4; + supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"]; + protocol = "ssh-ng"; + sshUser = "root"; + sshKey = "/home/${config.ccr.username}/.ssh/id_rsa"; + } + ]; }; }