fix: use separate config option to set port of DNSmasq

Older approach seems to not work on macOS 11 Big Sur for some reason.
This commit is contained in:
Łukasz Niemier 2021-01-28 13:59:11 +01:00
parent 8834df4317
commit bd75d14b0f
No known key found for this signature in database
GPG key ID: 15E70BE89F051D9B
2 changed files with 6 additions and 2 deletions

View file

@ -63,7 +63,10 @@ in
name = "resolver/${domain}";
value = {
enable = true;
text = "nameserver ${cfg.bind}.${toString cfg.port}";
text = ''
port ${toString cfg.port}
nameserver ${cfg.bind}
'';
};
}) (builtins.attrNames cfg.addresses));
};