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
commit d00a33c9df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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";