Commit 9c1200bd5559

Vincent Demeester <vincent@sbr.pm>
2026-07-03 00:16:34
refactor: remove Traefik routes for killed services
Removed rhea Traefik routers/services and globals entries for the now-dead kiwix, n8n, llm, and searxng services, along with their homepage dashboard entries. Also dropped the orphaned n8n environment override and searxng firewall port on sakhalin. Calibre is kept.
1 parent db6e28d
Changed files (5)
pkgs
homepage
systems
common
rhea
sakhalin
pkgs/homepage/default.nix
@@ -41,14 +41,10 @@ let
     utilities = {
       title = "Utilities";
       services = [
-        "kiwix"
-        "n8n"
         "paperless"
         "grafana"
       ];
       descriptions = {
-        kiwix = "Offline Wikipedia and content";
-        n8n = "Workflow automation";
         paperless = "Document management";
         grafana = "Monitoring and metrics";
       };
systems/common/services/homepage.nix
@@ -358,24 +358,6 @@ in
               statusStyle = "dot";
             };
           }
-          {
-            N8N = {
-              description = "Workflow Automation";
-              href = "https://n8n.sbr.pm";
-              icon = "n8n.png";
-              ping = "https://n8n.sbr.pm";
-              statusStyle = "dot";
-            };
-          }
-          {
-            Kiwix = {
-              description = "Offline Wikipedia";
-              href = "https://kiwix.sbr.pm";
-              icon = "kiwix.png";
-              ping = "https://kiwix.sbr.pm";
-              statusStyle = "dot";
-            };
-          }
         ];
       }
     ];
systems/rhea/extra.nix
@@ -331,8 +331,6 @@ in
                 immich = mkRouterWithMiddlewares "immich" [ "immich.sbr.pm" ] [ "immich-buffering" ];
                 # Override home router to add Home Assistant headers
                 home = mkRouterWithMiddlewares "home" [ "home.sbr.pm" ] [ "home-headers" ];
-                kiwix = mkRouter "kiwix" [ "kiwix.sbr.pm" ];
-                n8n = mkRouter "n8n" [ "n8n.sbr.pm" ];
                 paperless = mkRouter "paperless" [ "paperless.sbr.pm" ];
                 grafana = mkRouter "grafana" [ "grafana.sbr.pm" ];
                 navidrome = mkRouter "navidrome" [
@@ -359,14 +357,7 @@ in
                 homepage = mkRouter "homepage" [ "homepage.sbr.pm" ];
                 # OpenCode web interface on okinawa (VPN-only)
                 opencode = mkRouter "opencode" [ "opencode.sbr.pm" ];
-                # llama-server on okinawa (VPN-only, OpenAI-compatible API)
-                llm = mkRouter "llm" [ "llm.sbr.pm" ];
                 reading = mkRouter "reading" [ "reading.sbr.pm" ];
-                # SearXNG metasearch engine on sakhalin
-                search = mkRouter "search" [
-                  "search.sbr.pm"
-                  "searxng.sbr.pm"
-                ];
                 # Traefik dashboard
                 traefik-dashboard = {
                   rule = "Host(`traefik.sbr.pm`)";
@@ -380,8 +371,6 @@ in
               // localHttpServices
               // {
                 home = mkService "http://${builtins.head globals.machines.hass.net.ips}:8123";
-                kiwix = mkService "http://${builtins.head globals.machines.sakhalin.net.ips}:8080";
-                n8n = mkService "http://${builtins.head globals.machines.sakhalin.net.ips}:5678";
                 paperless = mkService "http://${builtins.head globals.machines.aion.net.ips}:8000";
                 grafana = mkService "http://${builtins.head globals.machines.sakhalin.net.ips}:3000";
                 navidrome = mkService "http://${builtins.head globals.machines.aion.net.ips}:4533";
@@ -392,9 +381,7 @@ in
                 wallabag = mkService "http://${builtins.head globals.machines.aion.net.ips}:8084";
                 miniflux = mkService "http://${builtins.head globals.machines.aion.net.ips}:8085";
                 opencode = mkService "http://${builtins.head globals.machines.okinawa.net.vpn.ips}:5555";
-                llm = mkService "http://${builtins.head globals.machines.okinawa.net.vpn.ips}:8090";
                 reading = mkService "http://${builtins.head globals.machines.okinawa.net.vpn.ips}:8880";
-                search = mkService "http://${builtins.head globals.machines.sakhalin.net.vpn.ips}:8090";
               };
             middlewares =
               syncthingMiddlewares
systems/sakhalin/extra.nix
@@ -120,11 +120,6 @@ in
     owner = "prometheus";
   };
 
-  systemd.services.n8n.environment = {
-    N8N_SECURE_COOKIE = "false";
-    PATH = lib.mkForce "/run/current-system/sw/bin";
-  };
-
   services = {
     postgresql.package = pkgs.postgresql_16;
     # PostgreSQL backups
@@ -445,6 +440,5 @@ in
   # Open firewall for services accessible from the network
   networking.firewall.allowedTCPPorts = [
     8000 # Paperless-ngx web interface
-    8090 # SearXNG metasearch engine
   ];
 }
globals.nix
@@ -725,21 +725,12 @@ _: {
     # Home Assistant on hass (routed through rhea/traefik)
     home.host = "rhea";
     # Services on sakhalin (routed through rhea/traefik)
-    kiwix.host = "rhea";
-    n8n.host = "rhea";
     paperless.host = "rhea";
     grafana.host = "rhea";
     # OpenCode web interface on okinawa (routed through rhea/traefik)
     opencode.host = "rhea";
-    # llama-server on okinawa (routed through rhea/traefik)
-    llm.host = "rhea";
     # Readwise Reader triage report on okinawa (routed through rhea/traefik)
     reading.host = "rhea";
-    # SearXNG metasearch engine on aomi (routed through rhea/traefik)
-    search = {
-      host = "rhea";
-      aliases = [ "searxng" ];
-    };
     # XMPP messaging server on aion (VPN-only, direct access)
     xmpp.host = "aion";
   };