nix/config/Dpi.nix

50 lines
901 B
Nix
Raw Normal View History

2024-11-16 06:38:48 +03:00
{
config,
inputs,
lib,
pkgsMaster,
...
}: let
cfg = config.module.dpi;
in {
disabledModules = [ "services/networking/zapret.nix" ];
imports = [ "${inputs.nixpkgsMaster}/nixos/modules/services/networking/zapret.nix" ];
config = lib.mkIf cfg.bypass.enable {
services.zapret = {
inherit (cfg.bypass) params;
enable = true;
package = pkgsMaster.zapret;
2024-11-30 23:07:04 +03:00
httpMode = "full";
httpSupport = true;
udpSupport = true;
udpPorts = [
"50000:50099"
];
2024-11-16 06:38:48 +03:00
whitelist = [
"youtube.com"
"googlevideo.com"
"ytimg.com"
"youtu.be"
"rutracker.org"
"rutracker.cc"
"rutrk.org"
"t-ru.org"
"medium.com"
"dis.gd"
"discord.co"
"discord.com"
"discord.dev"
"discord.gg"
"discord.gift"
"discord.media"
"discord.new"
"discordapp.com"
"discordapp.net"
"discordcdn.com"
"discordstatus.com"
];
};
};
}