feat: awg runtime add

This commit is contained in:
fufsob committed 2026-09-28 18:51:47 +00:00
1 parent cd3aa5a53f
commit 364bed8d51
39 files changed
+1581 -190

No files matched your search

@@ -66,6 +66,25 @@ in
];
};
runtime = {
enable = mkOption {
type = types.bool;
default = true;
description = ''
Let `proxy-ctl` add configs and `vpn://` links without a rebuild: `proxy-ctl awg add`
for a global profile (root hosts only), and `proxy-ctl proxy outbounds add` for an
outbound, which runs in wireproxy (needs `proxy.enable`). wg-quick hooks such as
`PostUp` are always refused in them. With this on, `profiles` may be empty.
'';
};
interfaceName = mkOption {
type = types.strMatching "^[A-Za-z0-9_.-]{1,15}$";
default = "awg-rt";
description = "Interface of the global profiles added at runtime. Only one of them runs at a time, so they share it.";
};
};
profiles = mkOption {
type = types.attrsOf t.profileType;
default = { };