modules.services.xray: fix compatibility with tailscale DNS

This commit is contained in:
2025-11-09 16:25:27 +08:00
parent 0c38cafd25
commit 13d9d75a6f

View File

@@ -34,7 +34,8 @@ inputs:
{
no-poll = true;
log-queries = true;
server = [ "127.0.0.1#10853" ];
server = [ "127.0.0.1#10853" ]
++ inputs.lib.optionals (inputs.config.nixos.services.tailscale != null) [ "/ts.chn.moe/100.100.100.100" ];
interface = client.dnsmasq.extraInterfaces ++ [ "lo" ];
bind-dynamic = true;
address = builtins.map (host: "/${host.name}/${host.value}")