nix/config/Dpi.nix
2025-01-22 16:48:39 +03:00

32 lines
529 B
Nix

{
config,
inputs,
lib,
...
}:
let
cfg = config.module.dpi.bypass;
in
{
disabledModules = [ "services/networking/zapret.nix" ];
imports = [ "${inputs.nixpkgsMaster}/nixos/modules/services/networking/zapret.nix" ];
config = lib.mkIf cfg.enable {
services.zapret = {
enable = true;
inherit (cfg)
package
params
whitelist
blacklist
qnum
configureFirewall
httpSupport
httpMode
udpSupport
udpPorts
;
};
};
}