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

58 lines
1,017 B
Nix
Raw Normal View History

{
x,
lib,
config,
...
}:
2024-12-06 12:57:22 +00:00
with lib;
2024-12-09 01:15:55 +00:00
with x;
let
cfg = config.module.services.zapret;
in
{
options = {
module.services.zapret = {
enable = mkBool;
};
};
2024-12-06 12:57:22 +00:00
config = mkIf cfg.enable {
services.zapret = True // {
params = [
"--dpi-desync=fake"
"--dpi-desync-ttl=8"
"-dpi-desync-repeats=15"
];
2024-12-06 12:57:22 +00:00
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"
];
};
};
}