diff --git a/machines/orbi/service-nix-cache.nix b/machines/orbi/service-nix-cache.nix index 950e200..b4cabc8 100644 --- a/machines/orbi/service-nix-cache.nix +++ b/machines/orbi/service-nix-cache.nix @@ -40,11 +40,13 @@ allow ${config.wireguard.wg0.subnet}; deny all; ''; + # curl https://cache.nixos.org/nix-cache-info + # lower priority means ask first. locations."= /nix-cache-info".extraConfig = '' alias ${pkgs.writeText "cache-info" '' StoreDir: /nix/store WantMassQuery: 1 - Priority: 10 + Priority: 50 ''}; allow ${config.wireguard.wg0.subnet}; deny all;