nix/config/Dpi.nix

21 lines
440 B
Nix
Raw Normal View History

2024-11-16 06:38:48 +03:00
{
config,
2025-01-22 15:36:34 +03:00
inputs,
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
}