From ed6e4a936c116fe4e9822b9b5b247aa013012ef7 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Fri, 24 Jan 2020 18:07:24 +0100 Subject: nixos/alertmanager: provide example of envsubst usage --- nixos/modules/services/monitoring/prometheus/alertmanager.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nixos/modules/services/monitoring/prometheus/alertmanager.nix') diff --git a/nixos/modules/services/monitoring/prometheus/alertmanager.nix b/nixos/modules/services/monitoring/prometheus/alertmanager.nix index 3c9ca6c7d37..2e8433fbc88 100644 --- a/nixos/modules/services/monitoring/prometheus/alertmanager.nix +++ b/nixos/modules/services/monitoring/prometheus/alertmanager.nix @@ -133,8 +133,10 @@ in { default = null; example = "/root/alertmanager.env"; description = '' - File to load as environment file. Useful to insert secrets - into the configuration (via envsubst). + File to load as environment file. Environment variables + from this file will be interpolated into the config file + using envsubst with this syntax: + $ENVIRONMENT ''${VARIABLE} ''; }; }; -- cgit 1.4.1