From cf02a780217dd0b6495e74339ba47b75ca9a2534 Mon Sep 17 00:00:00 2001 From: Kirill Date: Tue, 26 May 2026 14:20:21 +0300 Subject: [PATCH] fix(zapret): Added tests tools to zapret ) --- flake.nix | 2 +- modules/host/zapret-config.nix | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 4cf1dc1..973f342 100644 --- a/flake.nix +++ b/flake.nix @@ -67,7 +67,7 @@ }; modules = [ ./host/${hostname}/configuration.nix - inputs.zapret-discord-youtube.nixosModules.default + inputs.zapret-discord-youtube.nixosModules.withTestTools { nixpkgs.config = config; } ]; }; diff --git a/modules/host/zapret-config.nix b/modules/host/zapret-config.nix index 1e36b7a..a6ee303 100644 --- a/modules/host/zapret-config.nix +++ b/modules/host/zapret-config.nix @@ -3,14 +3,21 @@ { services.zapret-discord-youtube = { enable = true; - config = "general(ALT)"; # или любой другой + config = "general(ALT)"; # Или любой конфиг из папки configs (general, general(ALT), general (SIMPLE FAKE) и т.д.) - gameFilter = "null"; # "all", "tcp", "udp" или "null" + # Game Filter: "null" (отключен), "all" (TCP+UDP), "tcp" (только TCP), "udp" (только UDP) + gameFilter = "null"; # или "all", "tcp", "udp" + # Добавляем кастомные домены в list-general-user.txt listGeneral = [ "example.com" "test.org" "mysite.net" ]; + + # Добавляем домены в list-exclude-user.txt (исключения) listExclude = [ "ubisoft.com" "origin.com" ]; + # Добавляем IP адреса в ipset-all.txt ipsetAll = [ "192.168.1.0/24" "10.0.0.1" ]; + + # Добавляем IP адреса в ipset-exclude-user.txt (исключения) ipsetExclude = [ "203.0.113.0/24" ]; }; }