nixos/dnsmasq: make dnsmasq --test test the config file
Currently it's testing an empty configuration
This commit is contained in:
parent
46461692ee
commit
9d50f2dd2f
@ -173,7 +173,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";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user