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.
- Type
list of absolute path- Default
[ ]- Example
[ "/run/keys/telegraf.env" ]- Declared
- <nixpkgs/nixos/modules/services/monitoring/telegraf.nix>