puter/hosts/server/vessel/blocky.nix

25 lines
564 B
Nix
Raw Normal View History

2024-08-21 22:40:00 +00:00
let
upstream = "https://one.one.one.one/dns-query";
in {
2024-02-24 23:52:02 +00:00
services.blocky = {
enable = true;
settings = {
2025-01-05 00:35:19 +00:00
ports.dns = 53;
upstreams.groups.default = [upstream];
2024-02-24 23:52:02 +00:00
bootstrapDns = {
2024-08-21 22:40:00 +00:00
inherit upstream;
2024-02-24 23:52:02 +00:00
ips = ["1.1.1.1" "1.0.0.1"];
};
blocking = {
2025-01-05 00:35:19 +00:00
denylists.ads = ["https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"];
2024-02-24 23:52:02 +00:00
clientGroupsBlock.default = ["ads"];
};
caching = {
minTime = "5m";
maxTime = "30m";
prefetching = true;
};
};
};
}