Skip to content

Commit

Permalink
nixos/prometheus-dnsmasq-exporter: use a working default leasesPath
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bjornfor committed Oct 3, 2024
1 parent 5129943 commit e6d7bbf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
'';
Expand Down

0 comments on commit e6d7bbf

Please sign in to comment.