From e6d7bbf71d946affdef7b454ae6ec0da1adecfe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sat, 14 Sep 2024 20:54:43 +0200 Subject: [PATCH] nixos/prometheus-dnsmasq-exporter: use a working default leasesPath dnsmasq dhcp-leasefile defaults to /var/lib/dnsmasq/dnsmasq.leases, so use that as the default for the exporter too. Curiously, the example was using the working path, so this patch simply swaps "example" and "default" values. --- .../services/monitoring/prometheus/exporters/dnsmasq.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/monitoring/prometheus/exporters/dnsmasq.nix b/nixos/modules/services/monitoring/prometheus/exporters/dnsmasq.nix index ba438ea74a3b..9028d1fd5a66 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters/dnsmasq.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters/dnsmasq.nix @@ -21,8 +21,8 @@ in }; leasesPath = mkOption { type = types.path; - default = "/var/lib/misc/dnsmasq.leases"; - example = "/var/lib/dnsmasq/dnsmasq.leases"; + default = "/var/lib/dnsmasq/dnsmasq.leases"; + example = "/var/lib/misc/dnsmasq.leases"; description = '' Path to the `dnsmasq.leases` file. '';