1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-01 16:53:54 +00:00
ultima/modules/nixos/services/zapret/default.nix

46 lines
971 B
Nix

{ x, lib, config, ... }:
with lib;
with x;
let cfg = config.module.services.zapret;
in {
options = { module.services.zapret = { enable = mkBool; }; };
config = mkIf cfg.enable {
services.zapret = True // {
params =
[ "--dpi-desync=fake" "--dpi-desync-ttl=8" "-dpi-desync-repeats=15" ];
httpMode = "full";
udpSupport = true;
udpPorts = [ "50000:50099" ];
whitelist = [
"animego.org"
"github.io"
"proton.me"
"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"
];
};
};
}