diff options
author | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2020-01-24 18:07:24 +0100 |
---|---|---|
committer | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2020-01-24 18:07:24 +0100 |
commit | ed6e4a936c116fe4e9822b9b5b247aa013012ef7 (patch) | |
tree | fba25ac13c7155e3565c37ad534ce8ff20467d2b /nixos/modules/services/monitoring/prometheus/alertmanager.nix | |
parent | 23d5d9bbe9aab982d17ad92c0d9da291d01f60c7 (diff) | |
download | nixpkgs-ed6e4a936c116fe4e9822b9b5b247aa013012ef7.tar nixpkgs-ed6e4a936c116fe4e9822b9b5b247aa013012ef7.tar.gz nixpkgs-ed6e4a936c116fe4e9822b9b5b247aa013012ef7.tar.bz2 nixpkgs-ed6e4a936c116fe4e9822b9b5b247aa013012ef7.tar.lz nixpkgs-ed6e4a936c116fe4e9822b9b5b247aa013012ef7.tar.xz nixpkgs-ed6e4a936c116fe4e9822b9b5b247aa013012ef7.tar.zst nixpkgs-ed6e4a936c116fe4e9822b9b5b247aa013012ef7.zip |
nixos/alertmanager: provide example of envsubst usage
Diffstat (limited to 'nixos/modules/services/monitoring/prometheus/alertmanager.nix')
-rw-r--r-- | nixos/modules/services/monitoring/prometheus/alertmanager.nix | 6 |
1 files changed, 4 insertions, 2 deletions
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: + <literal>$ENVIRONMENT ''${VARIABLE}</literal> ''; }; }; |