From b287c37ee14b9d9a891e6c29aba4b1f8efe7aa7c Mon Sep 17 00:00:00 2001
From: zowoq <59103226+zowoq@users.noreply.github.com>
Date: Wed, 12 Apr 2023 12:35:41 +1000
Subject: [PATCH] services/hydra: switch to nix.setttings and remove redundant
 builders-use-substitutes

---
 services/hydra/default.nix | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/services/hydra/default.nix b/services/hydra/default.nix
index 96d66d8..8ea1c59 100644
--- a/services/hydra/default.nix
+++ b/services/hydra/default.nix
@@ -28,10 +28,10 @@ in
     # hydra-queue-runner needs to read this key for remote building
     sops.secrets.id_buildfarm.owner = "hydra-queue-runner";
 
-    nix.extraOptions = ''
-      builders-use-substitutes = true
-      allowed-uris = https://github.com/nix-community/ https://github.com/NixOS/
-    '';
+    nix.settings.allowed-uris = [
+      "https://github.com/nix-community/"
+      "https://github.com/NixOS/"
+    ];
 
     nixpkgs.config = {
       whitelistedLicenses = with lib.licenses; [