diff --git a/modules/dnsmasq/service.nix b/modules/dnsmasq/service.nix index aa1a260..87da526 100644 --- a/modules/dnsmasq/service.nix +++ b/modules/dnsmasq/service.nix @@ -44,7 +44,7 @@ longrun { --log-debug \ --log-queries \ --log-facility=- \ - --dhcp-leasefile=/run/${name}.leases \ + --dhcp-leasefile=$(mkstate ${name})/leases \ --pid-file=/run/${name}.pid ''; }