nix/config/Dpi.nix

21 lines
440 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;
};
};
}