diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2016-12-27 23:00:15 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2016-12-28 13:52:15 +0100 |
commit | 9ec867f59fba934c188e9dd4ccf1d35b49ad0c6f (patch) | |
tree | 958839e6a239fb7bfa106ac6f49fbf3eef610f0c /nixos/modules/services/monitoring/prometheus/alertmanager.nix | |
parent | c24206dc5f89b823d00897a24123410084b99a33 (diff) | |
download | nixlib-9ec867f59fba934c188e9dd4ccf1d35b49ad0c6f.tar nixlib-9ec867f59fba934c188e9dd4ccf1d35b49ad0c6f.tar.gz nixlib-9ec867f59fba934c188e9dd4ccf1d35b49ad0c6f.tar.bz2 nixlib-9ec867f59fba934c188e9dd4ccf1d35b49ad0c6f.tar.lz nixlib-9ec867f59fba934c188e9dd4ccf1d35b49ad0c6f.tar.xz nixlib-9ec867f59fba934c188e9dd4ccf1d35b49ad0c6f.tar.zst nixlib-9ec867f59fba934c188e9dd4ccf1d35b49ad0c6f.zip |
nixos/prometheus: unbreak alertmanager default config
The current default value of listenAddress = null blows up: $ nixos-rebuild build error: cannot coerce null to a string, at .../nixpkgs/nixos/modules/services/monitoring/prometheus/alertmanager.nix:97:16 With listenAddress = "" we use the same default as upstream and there is no blow up :-)
Diffstat (limited to 'nixos/modules/services/monitoring/prometheus/alertmanager.nix')
-rw-r--r-- | nixos/modules/services/monitoring/prometheus/alertmanager.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/alertmanager.nix b/nixos/modules/services/monitoring/prometheus/alertmanager.nix index a9c0ce4ed6cb..da2cd02eaa3b 100644 --- a/nixos/modules/services/monitoring/prometheus/alertmanager.nix +++ b/nixos/modules/services/monitoring/prometheus/alertmanager.nix @@ -62,8 +62,8 @@ in { }; listenAddress = mkOption { - type = types.nullOr types.str; - default = null; + type = types.str; + default = ""; description = '' Address to listen on for the web interface and API. ''; |