tangled
alpha
login
or
join now
devins.page
/
flake
0
fork
atom
configurations for my servers and desktops
nix
nixos
flake
dots
dotfiles
0
fork
atom
overview
issues
pulls
pipelines
feat: blocky
devins.page
1 month ago
e0d43a65
c35fe139
+34
2 changed files
expand all
collapse all
unified
split
hosts
bluepill
default.nix
modules
nixos
services
blocky.nix
+1
hosts/bluepill/default.nix
···
1
1
{pkgs, ...}: {
2
2
imports = [
3
3
./hardware.nix
4
4
+
../../modules/nixos/services/blocky.nix
4
5
../../modules/nixos/services/homepage.nix
5
6
../../modules/nixos/services/jellyfin.nix
6
7
../../modules/nixos/services/mikusmp67.nix
+33
modules/nixos/services/blocky.nix
···
1
1
+
{...}: {
2
2
+
networking.firewall = {
3
3
+
allowedTCPPorts = [53];
4
4
+
allowedUDPPorts = [53];
5
5
+
};
6
6
+
7
7
+
services.blocky = {
8
8
+
enable = true;
9
9
+
settings = {
10
10
+
ports.dns = 53;
11
11
+
upstreams.groups.default = [
12
12
+
"https://one.one.one.one/dns-query"
13
13
+
];
14
14
+
blocking = {
15
15
+
denylists = {
16
16
+
ads = [
17
17
+
"https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/wildcard/pro.txt"
18
18
+
];
19
19
+
};
20
20
+
clientGroupsBlock = {
21
21
+
default = [
22
22
+
"ads"
23
23
+
];
24
24
+
};
25
25
+
};
26
26
+
caching = {
27
27
+
minTime = "5m";
28
28
+
maxTime = "30m";
29
29
+
prefetching = true;
30
30
+
};
31
31
+
};
32
32
+
};
33
33
+
}