From 3c61665b7f5c8520706e445201b1a6509eb09997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 12 Apr 2023 23:04:50 +0200 Subject: [PATCH] nixos/prometheus-smartctl-exporter: support extraFlags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Seems to be ignored currently. Useful for `-verbose` flag. Signed-off-by: Jakub SokoĊ‚owski --- .../services/monitoring/prometheus/exporters/smartctl.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/prometheus/exporters/smartctl.nix b/nixos/modules/services/monitoring/prometheus/exporters/smartctl.nix index 0c5648c1414..f80aeae9c6b 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters/smartctl.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters/smartctl.nix @@ -9,7 +9,7 @@ let "--smartctl.path=\"${pkgs.smartmontools}/bin/smartctl\" " "--smartctl.interval=\"${cfg.maxInterval}\" " "${concatMapStringsSep " " (device: "--smartctl.device=${device}") cfg.devices}" - ]; + ] ++ cfg.extraFlags; in { port = 9633;