From 9ec867f59fba934c188e9dd4ccf1d35b49ad0c6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Tue, 27 Dec 2016 23:00:15 +0100 Subject: [PATCH] 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 :-) --- nixos/modules/services/monitoring/prometheus/alertmanager.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/monitoring/prometheus/alertmanager.nix b/nixos/modules/services/monitoring/prometheus/alertmanager.nix index a9c0ce4ed6c..da2cd02eaa3 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. '';