docs: improve the wording, add targeted examples
This commit is contained in:
61 files changed
+3422
-5861
No files matched your search
@@ -16,24 +16,24 @@ let
|
||||
in
|
||||
{
|
||||
options.services.proxy-suite.amneziaWg = {
|
||||
enable = mkEnableOption "native AmneziaWG client profiles";
|
||||
enable = mkEnableOption "AmneziaWG client profiles";
|
||||
|
||||
toolsPackage = mkOption {
|
||||
type = types.package;
|
||||
default = awgPackages.tools;
|
||||
description = "AWG 3.1 package providing awg and awg-quick.";
|
||||
description = "AWG 3.1 package with `awg` and `awg-quick`.";
|
||||
};
|
||||
|
||||
userspacePackage = mkOption {
|
||||
type = types.package;
|
||||
default = awgPackages.userspace;
|
||||
description = "AWG 3.1 userspace implementation used when the kernel interface is unavailable.";
|
||||
description = "AWG 3.1 userspace implementation, used when the kernel module is unavailable.";
|
||||
};
|
||||
|
||||
wireproxyPackage = mkOption {
|
||||
type = types.package;
|
||||
default = awgPackages.wireproxy;
|
||||
description = "wireproxy build with AWG 3.1 and FwMark, which runs profiles with asOutbound = \"userspace\".";
|
||||
description = "wireproxy build with AWG 3.1, used by profiles with `asOutbound = \"userspace\"`.";
|
||||
};
|
||||
|
||||
kernelModulePackage = mkOption {
|
||||
@@ -43,19 +43,18 @@ in
|
||||
kernelPackages = config.services.proxy-suite.host.kernelPackages;
|
||||
in
|
||||
if kernelPackages == null then null else awgPackages.kernelModule kernelPackages;
|
||||
description = "AWG 3.1 kernel module package. Set null to use userspace-only fallback.";
|
||||
description = "AWG 3.1 kernel module package. `null`: userspace only.";
|
||||
};
|
||||
|
||||
profiles = mkOption {
|
||||
type = types.attrsOf t.profileType;
|
||||
default = { };
|
||||
description = ''
|
||||
Named AmneziaWG client profiles. Only one global profile can be active.
|
||||
AmneziaWG client profiles, by name. Each sets exactly one of `configFile`, `vpnFile`, `vpn`
|
||||
or `settings`. Only one global profile can run at a time.
|
||||
|
||||
A profile moves to a new source port, keeping its routes, when a handshake goes
|
||||
unanswered: every 5 seconds while it starts (it gives up after 20), and when
|
||||
proxy-suite-awg-NAME-watchdog sees a rekey not getting through. settings.listenPort
|
||||
pins the port and turns that off.
|
||||
When handshakes go unanswered, a profile switches to a new source port on its own.
|
||||
Setting `settings.listenPort` pins the port and turns this off.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user