feat: add connectivity fix options + hardening

This commit is contained in:
fufsob committed 2026-09-29 03:14:24 +00:00
1 parent 364bed8d51
commit c8b9b3de46
41 files changed
+626 -111

No files matched your search

+11 -5
View File
@@ -95,11 +95,16 @@ let
'';
# nfqws2 runs supervised; the firewall comes and goes around it.
daemonConfig = runtimeEnv: {
Type = "notify";
ExecReload = "${lib.getExe' pkgs.coreutils "kill"} -HUP $MAINPID";
Environment = runtimeEnv;
};
daemonConfig =
runtimeEnv:
{
Type = "notify";
ExecReload = "${lib.getExe' pkgs.coreutils "kill"} -HUP $MAINPID";
Environment = runtimeEnv;
}
# nfqws2 runs as root and writes its lists in a directory the zapret scope's group
# writes to as well.
// constants.rootInSharedDirConfig;
cutoff = import ./zapret2/cutoff.nix {
inherit
@@ -119,6 +124,7 @@ in
lib.mkIf cutoffCfg.enable cutoff.service;
services.proxy-suite.internal.timers.proxy-suite-zapret2-cutoff =
lib.mkIf cutoffCfg.enable cutoff.timer;
services.proxy-suite.internal.tmpfiles = lib.mkIf cutoffCfg.enable cutoff.tmpfiles;
services.proxy-suite.internal.services.proxy-suite-zapret =
lib.mkIf zapretGlobalEnabled