From 9d50f2dd2fd1b2cb793caf4467f64883abfe9043 Mon Sep 17 00:00:00 2001 From: Glen Huang Date: Thu, 17 Jul 2025 13:28:04 +0800 Subject: [PATCH] nixos/dnsmasq: make dnsmasq --test test the config file Currently it's testing an empty configuration --- nixos/modules/services/networking/dnsmasq.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/dnsmasq.nix b/nixos/modules/services/networking/dnsmasq.nix index b345b51d4bda..605c4666ab60 100644 --- a/nixos/modules/services/networking/dnsmasq.nix +++ b/nixos/modules/services/networking/dnsmasq.nix @@ -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";