nixos/dnsmasq: make dnsmasq --test actually test the config file (#426004)

This commit is contained in:
Sandro
2025-08-07 15:08:19 +02:00
committed by GitHub

View File

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