fix: awg & warp fixes

This commit is contained in:
fufsob committed 2026-09-28 02:52:13 +00:00
1 parent 08b00cf449
commit d25fcb5468
17 files changed
+277 -7

No files matched your search

+31
View File
@@ -83,6 +83,17 @@ let
};
};
amneziaWgAutostart = mkProxySuite {
enable = true;
amneziaWg.enable = true;
warp = {
enable = true;
configFile = profile;
asAmneziaWg = true;
autostart = true;
};
};
amneziaWgEndpoint = mkProxySuite {
enable = true;
amneziaWg.enable = true;
@@ -144,6 +155,17 @@ let
};
proxy.enable = true;
}
# autostart is the global profile's; an outbound always runs.
{
enable = true;
warp = {
enable = true;
configFile = profile;
asOutbound = "singBox";
autostart = true;
};
proxy.enable = true;
}
# Tag collision with a declared outbound.
{
enable = true;
@@ -268,6 +290,15 @@ in
assert !(amneziaWg.config.systemd.services ? "proxy-suite-warp-tunnel");
true
)
# The global profile starts on demand (proxy-ctl awg on warp), or at boot with autostart.
(
assert
amneziaWg.config.systemd.services."proxy-suite-awg-warp".wantedBy == [ ]
&&
builtins.elem "multi-user.target"
amneziaWgAutostart.config.systemd.services."proxy-suite-awg-warp".wantedBy;
true
)
# endpoint replaces the profile's Endpoint at conversion; the sing-box tunnel gets it quoted.
(
assert