nixos/dnsmasq: make dnsmasq --test test the config file

Currently it's testing an empty configuration
This commit is contained in:
Glen Huang 2025-07-17 13:28:04 +08:00
parent 46461692ee
commit 9d50f2dd2f

View File

@ -173,7 +173,7 @@ in
touch ${stateDir}/dnsmasq.leases
chown -R dnsmasq ${stateDir}
${lib.optionalString cfg.resolveLocalQueries "touch /etc/dnsmasq-{conf,resolv}.conf"}
dnsmasq --test
dnsmasq --test -C ${cfg.configFile}
'';
serviceConfig = {
Type = "dbus";