1
0
Fork 0
puter/hosts/server/vessel/blocky.nix

25 lines
552 B
Nix
Raw Normal View History

2024-08-22 00:40:00 +02:00
let
upstream = "https://one.one.one.one/dns-query";
in {
2024-02-25 00:52:02 +01:00
services.blocky = {
enable = true;
settings = {
port = 53;
2024-08-22 00:40:00 +02:00
upstream.default = [upstream];
2024-02-25 00:52:02 +01:00
bootstrapDns = {
2024-08-22 00:40:00 +02:00
inherit upstream;
2024-02-25 00:52:02 +01:00
ips = ["1.1.1.1" "1.0.0.1"];
};
blocking = {
blackLists.ads = ["https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"];
clientGroupsBlock.default = ["ads"];
};
caching = {
minTime = "5m";
maxTime = "30m";
prefetching = true;
};
};
};
}