fix: awg & warp fixes
This commit is contained in:
17 files changed
+277
-7
No files matched your search
@@ -51,6 +51,21 @@ in
|
||||
description = "AWG 3.1 kernel module package. `null`: userspace only.";
|
||||
};
|
||||
|
||||
serverUdpPorts = mkOption {
|
||||
type = types.listOf (types.either types.port (types.strMatching "[0-9]+-[0-9]+"));
|
||||
default = [ ];
|
||||
description = ''
|
||||
UDP ports of services on this host that others reach, whose packets a global profile
|
||||
leaves on the host's own routes. A reply from a socket bound to every address would
|
||||
otherwise leave through the tunnel, from the tunnel's address. The UDP inbound listeners
|
||||
and, on NixOS, the ports the firewall opens are included already.
|
||||
'';
|
||||
example = [
|
||||
3478
|
||||
"49152-65535"
|
||||
];
|
||||
};
|
||||
|
||||
profiles = mkOption {
|
||||
type = types.attrsOf t.profileType;
|
||||
default = { };
|
||||
|
||||
@@ -43,6 +43,8 @@ in
|
||||
enableIPv6 = internalOption types.bool true;
|
||||
kernelPackages = internalOption (types.nullOr types.raw) null;
|
||||
firewallPackage = internalOption (types.nullOr types.package) null;
|
||||
# UDP ports the host's firewall opens, as "port" or "from-to".
|
||||
openUdpPorts = internalOption (types.listOf types.str) [ ];
|
||||
resolvconfPackage = internalOption (types.nullOr types.package) null;
|
||||
};
|
||||
|
||||
|
||||
@@ -67,5 +67,14 @@ in
|
||||
`amneziaWg.enable`. Cannot be used with `asOutbound`.
|
||||
'';
|
||||
};
|
||||
|
||||
autostart = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Bring the "warp" AmneziaWG profile up at boot, as `autostart` of an `amneziaWg` profile
|
||||
does. Needs `asAmneziaWg`. Only one global mode can autostart.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user