fix: behavior and docs fixes

This commit is contained in:
FUFSoB committed 2026-09-26 18:35:32 +05:00
1 parent e4458dcae8
commit 2255e1f9f0
42 files changed
+320 -161

No files matched your search

+6 -2
View File
@@ -12,7 +12,11 @@
}:
let
inherit (import ../derived.nix { inherit lib cfg; }) constants userControlAllows;
inherit (import ../derived.nix { inherit lib cfg; })
constants
userControlAllows
zapretGlobalEnabled
;
z2k = zapret2Sources.z2k;
lists = "${z2k}/files/lists";
dir = constants.zapret2CutoffDir;
@@ -20,7 +24,7 @@ let
table = "proxy_suite_cutoff_probe";
# try-restart fails on a unit that is not installed, so only name the ones built.
restartUnits =
lib.optional cfg.zapret.enable "proxy-suite-zapret.service"
lib.optional zapretGlobalEnabled "proxy-suite-zapret.service"
++ lib.optional cfg.perAppRouting.zapret.enable "proxy-suite-per-app-zapret.service";
z2kDetect = pkgs.buildGoModule {