Skip to content

Commit

Permalink
feat: enable blocky for rpis
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Nov 14, 2024
1 parent da26e0b commit 51dc955
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hosts/rpi4-1/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

networking.firewall.enable = false;

services.blocky.enable = true;

konrad.services = {
autoupgrade = {
enable = true;
Expand Down
36 changes: 36 additions & 0 deletions hosts/rpi4-2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,40 @@
};

networking.firewall.enable = false;

services.blocky = {
enable = true;
settings = {
ports = {
dns = 53;
http = 4000;
};
upstreams = {
groups = {
default = [
"1.1.1.1"
"9.9.9.9"
"8.8.8.8"
];
};
};
blocking = {
denylists = {
ads = [
"https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt"
"https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"
];
fakenews = [
"https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts"
];
};
clientGroupsBlock = {
default = [
"ads"
"fakenews"
];
};
};
};
};
}

0 comments on commit 51dc955

Please sign in to comment.