From e03d41fb6bb3076a4a868f173cb4019e4e92a816 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sun, 12 Jun 2022 20:25:54 +0200 Subject: [PATCH] nixos/prometheus-wireguard-exporter: fix broken options This is apparently a breaking change in a patch-level release[1] where it's now necessary to specify values for each CLI argument. [1] https://github.com/MindFlavor/prometheus_wireguard_exporter/releases/tag/3.6.1 --- .../services/monitoring/prometheus/exporters/wireguard.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/monitoring/prometheus/exporters/wireguard.nix b/nixos/modules/services/monitoring/prometheus/exporters/wireguard.nix index d4aa69629ec..2d329a1af1c 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters/wireguard.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters/wireguard.nix @@ -57,9 +57,9 @@ in { ${pkgs.prometheus-wireguard-exporter}/bin/prometheus_wireguard_exporter \ -p ${toString cfg.port} \ -l ${cfg.listenAddress} \ - ${optionalString cfg.verbose "-v"} \ - ${optionalString cfg.singleSubnetPerField "-s"} \ - ${optionalString cfg.withRemoteIp "-r"} \ + ${optionalString cfg.verbose "-v true"} \ + ${optionalString cfg.singleSubnetPerField "-s true"} \ + ${optionalString cfg.withRemoteIp "-r true"} \ ${optionalString (cfg.wireguardConfig != null) "-n ${escapeShellArg cfg.wireguardConfig}"} ''; RestrictAddressFamilies = [