MyNixOS website logo
option

services.telegraf.environmentFiles

File to load as environment file. Environment variables from this file will be interpolated into the config file using envsubst with this syntax: $ENVIRONMENT or ${VARIABLE}. This is useful to avoid putting secrets into the nix store.

Declarations
Type
list of path
Default
[ ]
Example
[
  "/run/keys/telegraf.env"
]