summaryrefslogtreecommitdiff
path: root/archetypes/profiles/router/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'archetypes/profiles/router/default.nix')
-rw-r--r--archetypes/profiles/router/default.nix28
1 files changed, 22 insertions, 6 deletions
diff --git a/archetypes/profiles/router/default.nix b/archetypes/profiles/router/default.nix
index 0818a6b..646982b 100644
--- a/archetypes/profiles/router/default.nix
+++ b/archetypes/profiles/router/default.nix
@@ -1,12 +1,28 @@
{ lib, pkgs, ... }: let
mkRouter = lib.mkOverride 800;
- # TODO pass mkRouter
- #imports = [
- # ./unbound.nix
- #];
-
- nixosConfig = {};
+ 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 {