From 0ea363da23765c072dda594ec91a2cf6c18c03fa Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Sat, 13 May 2023 21:33:35 +0200 Subject: [PATCH] added big-parallel feature --- machines/tower/default.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/machines/tower/default.nix b/machines/tower/default.nix index 5724bad..92d7a6a 100644 --- a/machines/tower/default.nix +++ b/machines/tower/default.nix @@ -110,6 +110,28 @@ boot.binfmt.emulatedSystems = [ "i686-linux" ]; + + nix = { + distributedBuilds = true; + buildMachines = [ + { + hostName = "lambda"; + maxJobs = 4; + systems = [ "aarch64-linux" ]; + supportedFeatures = [ "big-parallel" ]; + } + ]; + }; + + programs.ssh.extraConfig = '' + Host lambda + IdentityFile /home/julien/.ssh/id_ed25519 + HostName lambda.julienmalka.me + User root + Port 45 + ''; + + # Open ports in the firewall. networking.firewall.allowedTCPPorts = [ 80 443 1810 ]; networking.firewall.allowedUDPPorts = [ 80 443 1810 ];