refactor: remove duplication

This commit is contained in:
FUFSoB committed 2026-09-18 21:39:18 +05:00
1 parent f7036f6075
commit 8a4ba2db6a
109 files changed
+2206 -3078

No files matched your search

+5 -12
View File
@@ -1,4 +1,5 @@
{
checkLib,
pkgs,
evalProxySuite,
baseModule,
@@ -12,6 +13,7 @@
}:
let
inherit (checkLib) ok;
fixtures = import ./global-proxy-modes/fixtures.nix {
inherit
evalProxySuite
@@ -49,10 +51,7 @@ let
in
{
assertions = [
(
assert tproxyWithFirewall.config.networking.firewall.enable;
true
)
(ok (tproxyWithFirewall.config.networking.firewall.enable))
(
assert tproxyManualFixture.config.services.proxy-suite.proxy.autostart == null;
assert tproxyManualFixture.config.systemd.services."proxy-suite-tproxy".wantedBy == [ ];
@@ -140,10 +139,7 @@ in
assert tunDefaultConfig.route.auto_detect_interface == true;
true
)
(
assert tunManualFixture.config.networking.nftables.enable;
true
)
(ok (tunManualFixture.config.networking.nftables.enable))
(
assert tunServiceConfig.ExecStartPre == tunServiceConfig.ExecStopPost;
assert pkgs.lib.hasInfix "delete table inet sing-box" tunCleanupScript;
@@ -169,10 +165,7 @@ in
assert !(localDns ? detour);
true
)
(
assert tunDefaultConfig.route.default_domain_resolver == "local";
true
)
(ok (tunDefaultConfig.route.default_domain_resolver == "local"))
(
assert builtins.elem "network-online.target"
tunManualFixture.config.systemd.services."proxy-suite-tun".after;