stubby: update config

This commit is contained in:
Tigor Hutasuhut 2024-06-14 20:03:30 +07:00
parent 0a5557c191
commit 22399a23b3

View file

@ -5,12 +5,18 @@ let
in in
{ {
config = mkIf cfg.enable { config = mkIf cfg.enable {
networking.resolvconf.useLocalResolver = true;
services.stubby = { services.stubby = {
enable = true; enable = true;
settings = pkgs.stubby.passthru.settingsExample // { settings = pkgs.stubby.passthru.settingsExample // {
listen_addresses = [
"0.0.0.0@53"
"0::0"
];
upstream_recursive_servers = [ upstream_recursive_servers = [
{ {
address_data = "1.1.1.1"; address_data = "1.1.1.1";
tls_port = 853;
tls_auth_name = "cloudflare-dns.com"; tls_auth_name = "cloudflare-dns.com";
} }
]; ];