feat: warp/awg and hysteria2 improvements

This commit is contained in:
fufsob committed 2026-09-28 15:26:52 +00:00
1 parent d25fcb5468
commit cd3aa5a53f
24 files changed
+676 -18

No files matched your search

+26 -2
View File
@@ -1,7 +1,12 @@
{ lib, ... }:
{ config, lib, ... }:
let
inherit (lib) mkEnableOption mkOption types;
inherit (lib)
literalExpression
mkEnableOption
mkOption
types
;
inherit (import ./lib.nix { inherit lib; }) endpoint;
in
{
@@ -59,6 +64,25 @@ in
'';
};
domainStrategy = mkOption {
type = types.nullOr (
types.enum [
"prefer_ipv4"
"prefer_ipv6"
"ipv4_only"
"ipv6_only"
]
);
default = if config.services.proxy-suite.host.enableIPv6 then "prefer_ipv6" else "prefer_ipv4";
defaultText = literalExpression ''if config.networking.enableIPv6 then "prefer_ipv6" else "prefer_ipv4"'';
description = ''
Which address family the "warp" outbound dials a name over first. Ignored with
`asOutbound = "userspace"`. Also applies to names resolved by the inbounds'
`routing.blockPrivate` check, unless `proxy.dns.strategy` is set.
'';
example = "prefer_ipv4";
};
asAmneziaWg = mkOption {
type = types.bool;
default = false;