From bcb2ca9ff8d50422c68b08a0b42ccca3690be43e Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Tue, 15 Mar 2022 12:33:19 +0300 Subject: [PATCH] Add tweag builder --- profiles/nix/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/profiles/nix/default.nix b/profiles/nix/default.nix index 9c1a0c4..8a02c40 100644 --- a/profiles/nix/default.nix +++ b/profiles/nix/default.nix @@ -9,6 +9,7 @@ optimise.automatic = true; extraOptions = '' + builders-use-substitutes = true experimental-features = nix-command flakes ''; @@ -23,6 +24,17 @@ "s3://serokell-private-cache?endpoint=s3.eu-central-1.wasabisys.com&profile=serokell-private-cache-wasabi" ]; }; + buildMachines = [ + # tweag remote builder + { + hostName = "build01.tweag.io"; + maxJobs = 24; + sshUser = "nix"; + sshKey = "/root/.ssh/id_ed25519"; + system = "x86_64-linux"; + supportedFeatures = [ "benchmark" "big-parallel" "kvm" ]; + } + ]; }; persist.state.directories = [ "/home/balsoft/.local/share/nix" ];