nix/config/Dpi.nix

44 lines
790 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;
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"
];
};
};
}