diff --git a/services/telegraf.nix b/services/telegraf.nix index 88aacebc..d6ee0c37 100644 --- a/services/telegraf.nix +++ b/services/telegraf.nix @@ -16,9 +16,7 @@ # Configure the package: services.telegraf = { enable = true; - environmentFiles = { - /run/secrets/secrets - }; + environmentFiles = [ /run/secrets/telegraf-token ]; extraConfig = { outputs = { influxdb_v2 = {