From 88e9f27e7980f620f0cbd4a8291620fadb65b7be Mon Sep 17 00:00:00 2001 From: notohh Date: Mon, 5 Feb 2024 10:02:23 -0500 Subject: [PATCH] blocky: add custom whitelist --- hosts/haru/services/blocky.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/hosts/haru/services/blocky.nix b/hosts/haru/services/blocky.nix index ac49d2e..828d03a 100644 --- a/hosts/haru/services/blocky.nix +++ b/hosts/haru/services/blocky.nix @@ -33,7 +33,6 @@ }; }; blocking = { - blockType = "nxDomain"; loading = { strategy = "fast"; concurrency = 8; @@ -77,11 +76,20 @@ "https://big.oisd.nl/domainswild" ]; }; - whiteLists = { - default = [ + whiteLists = let + customWhitelist = pkgs.writeText "misc.txt" '' + ax.phobos.apple.com.edgesuite.net + amp-api-edge.apps.apple.com + (\.|^)dscx\.akamaiedge\.net$ + (\.|^)wac\.phicdn\.net$ + *.flake.sh + ''; + in { + ads = [ "https://raw.githubusercontent.com/anudeepND/whitelist/master/domains/whitelist.txt" "https://raw.githubusercontent.com/anudeepND/whitelist/master/domains/optional-list.txt" ]; + misc = [customWhitelist]; }; clientGroupsBlock = { default = [