From 88a70c9669160cd6ce498ca74ea20c07910c93f2 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Sat, 7 Sep 2019 13:24:24 +0100 Subject: [PATCH] nixos/kibana: Filter empty lists Some options (in particular elasticsearch.ssl.certificateAuthorities) are not allowed to be empty. --- nixos/modules/services/search/kibana.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/search/kibana.nix b/nixos/modules/services/search/kibana.nix index 75871a9df949..43a63aa8fdc2 100644 --- a/nixos/modules/services/search/kibana.nix +++ b/nixos/modules/services/search/kibana.nix @@ -9,7 +9,7 @@ let lt6_6 = builtins.compareVersions cfg.package.version "6.6" < 0; cfgFile = pkgs.writeText "kibana.json" (builtins.toJSON ( - (filterAttrsRecursive (n: v: v != null) ({ + (filterAttrsRecursive (n: v: v != null && v != []) ({ server.host = cfg.listenAddress; server.port = cfg.port; server.ssl.certificate = cfg.cert;