From dbe03e152ce5fb1cabaf59d24cd5f80bd471b018 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 7 Apr 2025 09:39:41 +0200 Subject: [PATCH] nixos/prometheus-exporters/mail: lib.filterAttrs -> lib.removeAttrs --- .../modules/services/monitoring/prometheus/exporters/mail.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/prometheus/exporters/mail.nix b/nixos/modules/services/monitoring/prometheus/exporters/mail.nix index 7dc40293d464..61ca738fdd31 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters/mail.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters/mail.nix @@ -15,6 +15,7 @@ let nameValuePair toLower filterAttrs + removeAttrs escapeShellArg literalExpression mkIf @@ -41,7 +42,7 @@ let ) else nameValuePair (toLower name) value - ) (filterAttrs (n: _: !(n == "_module")) cfg.configuration) + ) (removeAttrs cfg.configuration [ "_module" ]) ) );