Files
proxy-suite-flake/nix/checks/xray-backend-runtime/tun.nix
T
2026-09-18 21:39:18 +05:00

56 lines
1.1 KiB
Nix

{
checkLib,
pkgs,
checkConstants,
xrayTunConfig,
xrayPerAppTunConfig,
xrayStartBackendJqFilterFile,
xrayTunBackendJqFilterFile,
xrayPerAppTunBackendJqFilterFile,
xrayStartScript,
xrayTunStartScript,
xrayTunUpScript,
xrayPerAppTunStartScript,
xrayPerAppTunUpScript,
xrayPerAppTunCleanupScript,
xrayBackendJqFilter,
}:
let
backendFilterChecks = import ./tun/backend-filter.nix {
inherit
pkgs
xrayStartBackendJqFilterFile
xrayTunBackendJqFilterFile
xrayPerAppTunBackendJqFilterFile
xrayStartScript
xrayBackendJqFilter
;
};
globalTunChecks = import ./tun/global.nix {
inherit
pkgs
checkConstants
xrayTunConfig
xrayTunStartScript
xrayTunUpScript
;
};
perAppTunChecks = import ./tun/per-app.nix {
inherit
pkgs
checkConstants
xrayPerAppTunConfig
xrayPerAppTunStartScript
xrayPerAppTunUpScript
xrayPerAppTunCleanupScript
;
};
in
{
assertions =
backendFilterChecks.assertions ++ globalTunChecks.assertions ++ perAppTunChecks.assertions;
}