This commit is contained in:
Lukas Wurzinger 2024-02-25 00:52:02 +01:00
parent 4fd2988a50
commit 1f7771ec3f
2 changed files with 23 additions and 0 deletions

22
hosts/vessel/blocky.nix Normal file
View file

@ -0,0 +1,22 @@
{
services.blocky = {
enable = true;
settings = {
port = 53;
upstream.default = ["https://one.one.one.one/dns-query"];
bootstrapDns = {
upstream = "https://one.one.one.one/dns-query";
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;
};
};
};
}

View file

@ -11,6 +11,7 @@
inputs.hardware.nixosModules.common-pc-ssd
./backup.nix
./blocky.nix
];
nixpkgs.hostPlatform = "x86_64-linux";