🔧 cache.orbi.wg0: 10 -> 50
This commit is contained in:
parent
abe153cdce
commit
84a6dd2c8f
1 changed files with 3 additions and 1 deletions
|
@ -40,11 +40,13 @@
|
||||||
allow ${config.wireguard.wg0.subnet};
|
allow ${config.wireguard.wg0.subnet};
|
||||||
deny all;
|
deny all;
|
||||||
'';
|
'';
|
||||||
|
# curl https://cache.nixos.org/nix-cache-info
|
||||||
|
# lower priority means ask first.
|
||||||
locations."= /nix-cache-info".extraConfig = ''
|
locations."= /nix-cache-info".extraConfig = ''
|
||||||
alias ${pkgs.writeText "cache-info" ''
|
alias ${pkgs.writeText "cache-info" ''
|
||||||
StoreDir: /nix/store
|
StoreDir: /nix/store
|
||||||
WantMassQuery: 1
|
WantMassQuery: 1
|
||||||
Priority: 10
|
Priority: 50
|
||||||
''};
|
''};
|
||||||
allow ${config.wireguard.wg0.subnet};
|
allow ${config.wireguard.wg0.subnet};
|
||||||
deny all;
|
deny all;
|
||||||
|
|
Loading…
Reference in a new issue