feat: per-app keep-running

This commit is contained in:
FUFSoB committed 2026-10-10 16:19:54 +05:00
1 parent 91f2397ac5
commit d70bcb317f
15 files changed
+570 -22

No files matched your search

+3 -10
View File
@@ -57,16 +57,9 @@ in
};
# The per-app instance's ExecStartPre: it has nothing to add under a global mode, which
# it never displaces (constants.refuseUnderGlobal); those take it down as they start.
perAppRefuseUnderGlobal = derived.constants.refuseUnderGlobal pkgs (
[
"proxy-suite-tproxy.service"
"proxy-suite-tun.service"
]
++ map (name: "proxy-suite-awg-${name}.service") (
builtins.attrNames (lib.filterAttrs (_: profile: profile.asOutbound == null) cfg.amneziaWg.profiles)
)
++ lib.optional derived.awgRuntimeGlobal "proxy-suite-awg@*.service"
);
perAppRefuseUnderGlobal =
derived.constants.refuseUnderGlobal pkgs
derived.perAppGlobalModes."proxy-suite-per-app-zapret";
perAppZapretMarkUpScript = pkgs.writeShellScript scriptName ''
set -euo pipefail