Files
proxy-suite-flake/modules/proxy-suite/options/proxy-dns.nix
T
FUFSoB fdb2b08790 refactor: overhaul of options and features
Includes, but not limited to:
- zapret2 support
- declarative inbounds
- proxy-ctl revamp
- automatic proxy learning
2026-09-13 22:37:45 +05:00

36 lines
819 B
Nix

{ lib, ... }:
let
inherit (lib) mkOption;
t = import ./types.nix { inherit lib; };
cloudflare = {
type = "udp";
address = "1.1.1.1";
port = 53;
};
in
{
options.services.proxy-suite.proxy.dns = {
local = mkOption {
type = t.dnsUpstreamType;
default = cloudflare;
description = "Resolver for direct traffic and the default domain resolver. Goes through the proxy in global TUN mode.";
example = {
type = "tcp";
address = "9.9.9.9";
};
};
remote = mkOption {
type = t.dnsUpstreamType;
default = cloudflare;
description = "Resolver used through the proxy; the DNS default when proxy.routing.default is proxy.";
example = {
type = "tls";
address = "1.1.1.1";
port = 853;
};
};
};
}