blob: 646982bb514694569f14dc4aeb7dc64abd91ddb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ lib, pkgs, ... }: let
mkRouter = lib.mkOverride 800;
nixosConfig = {
services.unbound = {
_blocklists = {
enable = true;
blocklists = {
hageziNSFW = [
"https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/rpz/nsfw.txt"
"https://gitlab.com/hagezi/mirror/-/raw/main/dns-blocklists/rpz/nsfw.txt"
"https://codeberg.org/hagezi/mirror2/raw/branch/main/dns-blocklists/rpz/nsfw.txt"
];
hageziPro = [
"https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/rpz/pro.txt"
"https://gitlab.com/hagezi/mirror/-/raw/main/dns-blocklists/rpz/pro.txt"
"https://codeberg.org/hagezi/mirror2/raw/branch/main/dns-blocklists/rpz/pro.txt"
];
};
};
};
services._router.dnsDhcpConfig = {
enable = mkRouter true;
};
};
homeConfig = {};
in {
imports = [ (lib._mkProfileArchetype "router" nixosConfig homeConfig) ];
}
|