nixos/influxdb2: set timezone data environment variable

Go reads the timezone database from ZONEINFO instead of TZDIR, which is otherwise
unset.
This commit is contained in:
xeals 2022-11-06 10:58:46 +11:00
parent 1f834c8fda
commit de4601c37e
No known key found for this signature in database
GPG key ID: A498C7AF27EC6B5C

View file

@ -40,6 +40,7 @@ in
after = [ "network.target" ];
environment = {
INFLUXD_CONFIG_PATH = configFile;
ZONEINFO = "${pkgs.tzdata}/share/zoneinfo";
};
serviceConfig = {
ExecStart = "${cfg.package}/bin/influxd --bolt-path \${STATE_DIRECTORY}/influxd.bolt --engine-path \${STATE_DIRECTORY}/engine";