From 68c3e4954be1d397a3d0df9ca203c3e8c7163d9c Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 10 Jun 2024 13:40:10 +0100 Subject: [PATCH] nixos: builders-use-substitutes --- ops/nixos/lib/common.nix | 1 + ops/nixos/lib/macmini-distributed.nix | 3 --- ops/nixos/lib/nixbuild-distributed.nix | 3 --- ops/nixos/lib/oracle-lon01-distributed.nix | 3 --- ops/nixos/lib/whitby-distributed.nix | 3 --- 5 files changed, 1 insertion(+), 12 deletions(-) diff --git a/ops/nixos/lib/common.nix b/ops/nixos/lib/common.nix index 7814aa1a2b..36d63de5d2 100644 --- a/ops/nixos/lib/common.nix +++ b/ops/nixos/lib/common.nix @@ -122,6 +122,7 @@ in trusted-substituters = lib.mkForce [ "https://cache.nixos.org/" "s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1" ]; experimental-features = "nix-command"; max-call-depth = "9000000"; + builders-use-substitutes = "true"; }; }; nixpkgs.config = depot.third_party.nixpkgsConfig; diff --git a/ops/nixos/lib/macmini-distributed.nix b/ops/nixos/lib/macmini-distributed.nix index cc2fb53373..7525ae96b0 100644 --- a/ops/nixos/lib/macmini-distributed.nix +++ b/ops/nixos/lib/macmini-distributed.nix @@ -21,7 +21,4 @@ mandatoryFeatures = [ ]; }]; nix.distributedBuilds = true; - nix.extraOptions = '' - builders-use-substitutes = true - ''; } diff --git a/ops/nixos/lib/nixbuild-distributed.nix b/ops/nixos/lib/nixbuild-distributed.nix index 14a58450f0..1ce22e8add 100644 --- a/ops/nixos/lib/nixbuild-distributed.nix +++ b/ops/nixos/lib/nixbuild-distributed.nix @@ -23,9 +23,6 @@ mandatoryFeatures = [ ]; }]; nix.distributedBuilds = true; - nix.extraOptions = '' - builders-use-substitutes = true - ''; programs.ssh.extraConfig = '' Host eu.nixbuild.net diff --git a/ops/nixos/lib/oracle-lon01-distributed.nix b/ops/nixos/lib/oracle-lon01-distributed.nix index 448c6fd146..ec5065662b 100644 --- a/ops/nixos/lib/oracle-lon01-distributed.nix +++ b/ops/nixos/lib/oracle-lon01-distributed.nix @@ -14,7 +14,4 @@ mandatoryFeatures = [ ]; }]; nix.distributedBuilds = true; - nix.extraOptions = '' - builders-use-substitutes = true - ''; } diff --git a/ops/nixos/lib/whitby-distributed.nix b/ops/nixos/lib/whitby-distributed.nix index 75c4a7c6ea..49644fd835 100644 --- a/ops/nixos/lib/whitby-distributed.nix +++ b/ops/nixos/lib/whitby-distributed.nix @@ -16,9 +16,6 @@ mandatoryFeatures = [ ]; }]; nix.distributedBuilds = true; - nix.extraOptions = '' - builders-use-substitutes = true - ''; programs.ssh.extraConfig = '' Host whitby-build