summaryrefslogtreecommitdiff
path: root/archetypes/profiles
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-06-13 14:26:56 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-06-13 14:26:56 -0500
commitfeadf7131e5b6c33ea8485e746361b0529cd6ef4 (patch)
tree86c05c33a837eefc566bec45f5ef91e3c7d91eca /archetypes/profiles
parentb39f24436d5672e90e4261f0dfb906d97e92f1be (diff)
parent0397e503b32e73e03ef2dcdda58cc60da262524d (diff)
downloadnixos-feadf7131e5b6c33ea8485e746361b0529cd6ef4.tar.xz
nixos-feadf7131e5b6c33ea8485e746361b0529cd6ef4.zip
Merge branch 'poweredge'
Diffstat (limited to 'archetypes/profiles')
-rw-r--r--archetypes/profiles/default.nix1
-rw-r--r--archetypes/profiles/router/default.nix37
2 files changed, 0 insertions, 38 deletions
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) ];
-}
-