From 2b22c7aa9179d1442626192da4077e266c2bfcab Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Tue, 13 Feb 2024 21:54:45 +0000 Subject: [PATCH] dnsmasq: store dhcp lease file on /persist --- modules/dnsmasq/service.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ''; }