Skip to content

Geoipupdate

services.geoipupdate.enable

Whether to enable periodic downloading of GeoIP databases using geoipupdate . Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/geoipupdate.nix

services.geoipupdate.interval

Update the GeoIP databases at this time / interval. The format is described in {manpage}systemd.time(7).

Type: string

Default

"weekly"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/geoipupdate.nix

services.geoipupdate.settings

geoipupdate configuration options. See https://github.com/maxmind/geoipupdate/blob/main/doc/GeoIP.conf.md for a full list of available options.

Settings containing secret data should be set to an attribute set containing the attribute _secret - a string pointing to a file containing the value the option should be set to. See the example to get a better picture of this: in the resulting {file}GeoIP.conf file, the ProxyUserPassword key will be set to the contents of the {file}/run/keys/proxy_pass file.

Type: attribute set of (string or signed integer or boolean or list of (string or signed integer or boolean))

Example

{AccountID = 200001;DatabaseDirectory = "/var/lib/GeoIP";LicenseKey = { _secret = "/run/keys/maxmind_license_key"; };Proxy = "10.0.0.10:8888";ProxyUserPassword = { _secret = "/run/keys/proxy_pass"; };}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/geoipupdate.nix

services.geoipupdate.settings.AccountID

Your MaxMind account ID.

Type: signed integer

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/geoipupdate.nix

services.geoipupdate.settings.DatabaseDirectory

The directory to store the database files in. The directory will be automatically created, the owner changed to geoip and permissions set to world readable. This applies if the directory already exists as well, so don't use a directory with sensitive contents.

Type: path

Default

"/var/lib/GeoIP"

Example

"/run/GeoIP"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/geoipupdate.nix

services.geoipupdate.settings.EditionIDs

List of database edition IDs. This includes new string IDs like GeoIP2-City and old numeric IDs like 106.

Type: list of (string or signed integer)

Example

["GeoLite2-ASN""GeoLite2-City""GeoLite2-Country"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/geoipupdate.nix

services.geoipupdate.settings.LicenseKey

A file containing the MaxMind license key.

Always handled as a secret whether the value is wrapped in a { _secret = ...; } attrset or not (refer to for details).

Type: path or attribute set of path

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/geoipupdate.nix