feat(wip): amnezia-wg 3.1 support

This commit is contained in:
FUFSoB committed 2026-08-30 18:07:43 +05:00
1 parent 539f6a13ee
commit a456534801
29 files changed
+4092 -12

No files matched your search

+5
View File
@@ -55,6 +55,9 @@ let
headBin = "${pkgs.coreutils}/bin/head";
seqBin = "${pkgs.coreutils}/bin/seq";
findBin = "${pkgs.findutils}/bin/find";
amneziaWgProfileNamesFile = pkgs.writeText "proxy-suite-awg-profiles.json" (
builtins.toJSON (builtins.attrNames cfg.amneziaWg.profiles)
);
proxySuiteScriptsDir = ../../../scripts;
parserScriptsPythonPath = proxySuiteScriptsDir;
@@ -138,6 +141,7 @@ let
;
inherit (scripts) subscriptionTagsFile subscriptionCacheDir;
inherit (scripts) routeModeStateFile;
inherit amneziaWgProfileNamesFile;
inherit (perAppRouting)
perAppRoutingProfilesFile
proxychainsConfigFile
@@ -172,5 +176,6 @@ in
scripts
perAppRouting
control
amneziaWgProfileNamesFile
;
}
+2
View File
@@ -14,6 +14,7 @@
proxychainsConfigFile,
proxychainsQuietArg,
routeModeStateFile,
amneziaWgProfileNamesFile,
}:
{
proxyCtl = packages.mkProxyCtl {
@@ -26,6 +27,7 @@
proxychainsConfigFile
proxychainsQuietArg
routeModeStateFile
amneziaWgProfileNamesFile
;
defaultRouteMode = if proxyCfg.proxyByDefault then "blacklist" else "whitelist";
perAppRoutingEnabled = if perAppRoutingCfg.enable then "1" else "0";