feat: Added stuff
This commit is contained in:
24
nixos/tsuba/services/blocky.nix
Normal file
24
nixos/tsuba/services/blocky.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{...}: {
|
||||
services.blocky = {
|
||||
enable = true;
|
||||
settings = {
|
||||
ports.dns = 53; # Port for incoming DNS Queries.
|
||||
upstreams.groups.default = [
|
||||
"https://one.one.one.one/dns-query" # Using Cloudflare's DNS over HTTPS server for resolving queries.
|
||||
];
|
||||
# For initially solving DoH/DoT Requests when no system Resolver is available.
|
||||
bootstrapDns = {
|
||||
upstream = "https://one.one.one.one/dns-query";
|
||||
ips = ["1.1.1.1" "1.0.0.1"];
|
||||
};
|
||||
blocking = {
|
||||
denylists = {
|
||||
ads = ["https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"];
|
||||
};
|
||||
clientGroupsBlock = {
|
||||
default = ["ads"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -8,7 +8,8 @@
|
||||
./deluge.nix
|
||||
./homeassistant.nix
|
||||
# ./dnscrypt.nix
|
||||
./resolved.nix
|
||||
# ./resolved.nix
|
||||
./blocky.nix
|
||||
./flaresolverr.nix
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user