2024-11-16 06:38:48 +03:00
|
|
|
{
|
2024-12-18 09:40:11 +03:00
|
|
|
config,
|
2025-01-22 15:36:34 +03:00
|
|
|
inputs,
|
2024-12-18 09:40:11 +03:00
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
cfg = config.module.dpi.bypass;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
disabledModules = [ "services/networking/zapret.nix" ];
|
2025-01-22 15:36:34 +03:00
|
|
|
imports = [ "${inputs.nixpkgsMaster}/nixos/modules/services/networking/zapret.nix" ];
|
2024-11-16 06:38:48 +03:00
|
|
|
|
2025-01-22 15:36:34 +03:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
services.zapret = {
|
|
|
|
enable = true;
|
|
|
|
inherit (cfg) package params whitelist blacklist qnum configureFirewall httpSupport httpMode udpSupport udpPorts;
|
|
|
|
};
|
|
|
|
};
|
2024-11-16 06:38:48 +03:00
|
|
|
}
|