From 488f5758a3181df6ec185dc8e6df48eb1cc04d14 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 14 Mar 2023 11:17:25 +0800 Subject: [PATCH] nixops: prefer LAN cache --- nixops/desktop.nix | 2 +- nixops/rpi.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nixops/desktop.nix b/nixops/desktop.nix index e6cd91b9..c6c97db8 100644 --- a/nixops/desktop.nix +++ b/nixops/desktop.nix @@ -166,7 +166,7 @@ in services.udev.extraRules = (import ./extra-udev.nix); nix.settings.trusted-public-keys = ["nixbld.m-labs.hk-1:5aSRVA5b320xbNvu30tqxVPXpld73bhtOeH6uAjRyHc="]; - nix.settings.substituters = ["https://nixbld.m-labs.hk" "https://cache.nixos.org"]; + nix.settings.substituters = ["https://nixbld.m-labs.hk?priority=10"]; nix.settings.extra-sandbox-paths = ["/opt"]; nix.extraOptions = '' diff --git a/nixops/rpi.nix b/nixops/rpi.nix index 5ea3e742..e50abb2e 100644 --- a/nixops/rpi.nix +++ b/nixops/rpi.nix @@ -66,7 +66,7 @@ in programs.wireshark.enable = true; nix.settings.trusted-public-keys = ["nixbld.m-labs.hk-1:5aSRVA5b320xbNvu30tqxVPXpld73bhtOeH6uAjRyHc="]; - nix.settings.substituters = ["https://nixbld.m-labs.hk" "https://cache.nixos.org"]; + nix.settings.substituters = ["https://nixbld.m-labs.hk?priority=10"]; nix.settings.trusted-users = ["root" "sb"]; nix.extraOptions = ''