refactor: overhaul of options and features

Includes, but not limited to:
- zapret2 support
- declarative inbounds
- proxy-ctl revamp
- automatic proxy learning
This commit is contained in:
FUFSoB committed 2026-09-13 22:37:45 +05:00
1 parent b892384527
commit fdb2b08790
144 files changed
+13198 -14066

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
{ 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;
};
};
};
}