Files
proxy-suite-flake/modules/proxy-suite/options/user-control.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

35 lines
863 B
Nix

{ 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" ];
};
};
}