From 7f48b82da9ea004abae291e29022814866d9d0ef Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sat, 13 Jun 2026 14:02:17 -0500 Subject: router remove profile and add blocklists option and multiple lan interfaces etc --- archetypes/profiles/default.nix | 1 - archetypes/profiles/router/default.nix | 37 ---------------------------------- 2 files changed, 38 deletions(-) delete mode 100644 archetypes/profiles/router/default.nix (limited to 'archetypes/profiles') diff --git a/archetypes/profiles/default.nix b/archetypes/profiles/default.nix index 3f5567d..23b5c05 100644 --- a/archetypes/profiles/default.nix +++ b/archetypes/profiles/default.nix @@ -4,7 +4,6 @@ ./desktop ./headless ./pi - ./router ./zfs ]; } diff --git a/archetypes/profiles/router/default.nix b/archetypes/profiles/router/default.nix deleted file mode 100644 index 58e3407..0000000 --- a/archetypes/profiles/router/default.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ lib, pkgs, ... }: let - mkRouter = lib.mkOverride 800; - - # https://wiki.nixos.org/wiki/Networking - nixosConfig = { - services.unbound = { - _blocklists = { - enable = true; - blocklists = let - hageziList = list: [ - "https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/rpz/${list}.txt" - "https://gitlab.com/hagezi/mirror/-/raw/main/dns-blocklists/rpz/${list}.txt" - "https://codeberg.org/hagezi/mirror2/raw/branch/main/dns-blocklists/rpz/${list}.txt" - ]; - in { - hageziNSFW = hageziList "nsfw"; - hageziPro = hageziList "pro"; - }; - }; - }; - services._router = { - dnsDhcpConfig.enable = mkRouter true; - routing = { - enable = mkRouter true; - interfaces = { - lan = mkRouter "lan0"; - wan = mkRouter "wan0"; - }; - }; - }; - }; - - homeConfig = {}; -in { - imports = [ (lib._mkProfileArchetype "router" nixosConfig homeConfig) ]; -} - -- cgit v1.2.3