fix: hardening

This commit is contained in:
FUFSoB committed 2026-10-05 22:44:09 +05:00
1 parent 017a947a18
commit a435942b4f
168 files changed
+9166 -1644

No files matched your search

+13 -7
View File
@@ -83,13 +83,19 @@ in
"proxy-suite-socks.service"
];
wants = [ "network-online.target" ];
serviceConfig = unprivilegedServiceConfig [ ] // {
Type = "oneshot";
ExecStart = fetchScript;
StateDirectory = "proxy-suite/rulesets";
StateDirectoryMode = "0755";
LoadCredential = lib.optional withProxyAuth "proxy-password:${passwordSource}";
};
serviceConfig =
unprivilegedServiceConfig [ ]
# Through the proxy curl looks nothing up itself (socks5h).
// lib.optionalAttrs (lib.any (rs: rs.detour == "direct") ruleSets) (
derived.constants.killSwitchOwnLookups pkgs
)
// {
Type = "oneshot";
ExecStart = fetchScript;
StateDirectory = "proxy-suite/rulesets";
StateDirectoryMode = "0755";
LoadCredential = lib.optional withProxyAuth "proxy-password:${passwordSource}";
};
};
timers.proxy-suite-rulesets = {