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

+4 -6
View File
@@ -1,4 +1,5 @@
{
checkLib,
pkgs,
evalProxySuite,
baseModule,
@@ -8,6 +9,7 @@
}:
let
inherit (checkLib) startScript;
generated = import ../read-generated.nix;
customSingBoxPackage = pkgs.writeShellScriptBin "sing-box" ''
@@ -20,9 +22,7 @@ let
}
];
customSingBoxPackageBin = "${builtins.unsafeDiscardStringContext (toString customSingBoxPackage)}/bin/sing-box";
customSingBoxPackageStartScript = generated.readDerivation (
customSingBoxPackageFixture.config.systemd.services."proxy-suite-socks".serviceConfig.ExecStart
);
customSingBoxPackageStartScript = startScript customSingBoxPackageFixture;
routingOrFixture = evalProxySuite [
{
@@ -125,9 +125,7 @@ let
};
}
];
urlTestCustomStartScript = generated.readDerivation (
urlTestCustomFixture.config.systemd.services."proxy-suite-socks".serviceConfig.ExecStart
);
urlTestCustomStartScript = startScript urlTestCustomFixture;
noProxyBackendDefaultFixture = evalProxySuite [
{