feat: warp
This commit is contained in:
18 files changed
+864
-177
No files matched your search
@@ -14,6 +14,7 @@
|
||||
./zapret2.nix
|
||||
./amnezia-wg.nix
|
||||
./ssh-proxy.nix
|
||||
./warp.nix
|
||||
./tg-ws-proxy.nix
|
||||
./geodata.nix
|
||||
./tray.nix
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkEnableOption mkOption types;
|
||||
in
|
||||
{
|
||||
options.services.proxy-suite.warp = {
|
||||
enable = mkEnableOption "Cloudflare WARP";
|
||||
|
||||
configFile = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = ''
|
||||
Runtime path to a WireGuard profile for WARP, as written by `wgcf register && wgcf generate`.
|
||||
Junk-packet lines (Jc, Jmin, Jmax) are honoured by the AmneziaWG profile only.
|
||||
|
||||
When null, proxy-suite-warp registers a device with wgcf (accepting Cloudflare's terms)
|
||||
into /var/lib/proxy-suite/warp, through the local proxy when proxy.enable is set, and
|
||||
retries until it succeeds. Until then the warp outbound blocks.
|
||||
'';
|
||||
example = "/run/secrets/wgcf-profile.conf";
|
||||
};
|
||||
|
||||
asOutbound = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Add WARP as an outbound tagged "warp". sing-box runs it as a WireGuard endpoint,
|
||||
XRay as a wireguard outbound.
|
||||
'';
|
||||
};
|
||||
|
||||
asAmneziaWg = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Add an AmneziaWG profile named "warp" (`proxy-ctl awg on warp`). Requires amneziaWg.enable.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user