blocky: add custom whitelist

This commit is contained in:
notohh 2024-02-05 10:02:23 -05:00
parent 6d62d356fb
commit 88e9f27e79
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -33,7 +33,6 @@
}; };
}; };
blocking = { blocking = {
blockType = "nxDomain";
loading = { loading = {
strategy = "fast"; strategy = "fast";
concurrency = 8; concurrency = 8;
@ -77,11 +76,20 @@
"https://big.oisd.nl/domainswild" "https://big.oisd.nl/domainswild"
]; ];
}; };
whiteLists = { whiteLists = let
default = [ 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/whitelist.txt"
"https://raw.githubusercontent.com/anudeepND/whitelist/master/domains/optional-list.txt" "https://raw.githubusercontent.com/anudeepND/whitelist/master/domains/optional-list.txt"
]; ];
misc = [customWhitelist];
}; };
clientGroupsBlock = { clientGroupsBlock = {
default = [ default = [