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

@@ -0,0 +1,34 @@
{ lib, ... }:
let
inherit (lib) mkOption types;
in
{
options.services.proxy-suite.userControl = {
group = mkOption {
type = types.strMatching "^[a-z_][a-z0-9_-]*$";
default = "proxy-suite";
description = "Group whose members may run privileged `proxy-ctl` commands without a password.";
};
allow = mkOption {
type = types.listOf (
types.enum [
"global"
"perApp"
]
);
default = [
"global"
"perApp"
];
description = ''
What userControl.group may control without a password:
- "global": the global units (proxy, tun, tproxy, zapret, restart, subs update).
- "perApp": the per-app backend units used by `proxy-ctl apps run`.
Empty grants no passwordless control.
'';
example = [ "global" ];
};
};
}