Add geoip databases for snowflake proxy country metrics

NixOS doesn't have /usr/share/tor/geoip — point the proxy at
pkgs.tor.geoip derivation paths instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-03-24 20:48:28 -07:00
commit 86226c94db

View file

@ -499,7 +499,12 @@ in
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.snowflake}/bin/proxy -metrics -metrics-address 0.0.0.0";
ExecStart = toString [
"${pkgs.snowflake}/bin/proxy"
"-metrics" "-metrics-address" "0.0.0.0"
"-geoipdb" "${pkgs.tor.geoip}/share/tor/geoip"
"-geoip6db" "${pkgs.tor.geoip}/share/tor/geoip6"
];
DynamicUser = true;
Restart = "always";
RestartSec = 10;