about summary refs log tree commit diff stats
path: root/modules/by-name/sy/system-info/module.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/by-name/sy/system-info/module.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/by-name/sy/system-info/module.nix b/modules/by-name/sy/system-info/module.nix
index f04eb49..8136ae5 100644
--- a/modules/by-name/sy/system-info/module.nix
+++ b/modules/by-name/sy/system-info/module.nix
@@ -34,11 +34,20 @@
       "993" = checkEnabled "mail" "mail-imap-tls";
       "995" = checkEnabled "mail" "mail-pop3-tls";
 
+      "10222" = checkEnabled "taskchampion-sync" "taskchampion-sync";
+
       # TODO(@bpeetz): Check which service opens these ports: <2025-01-28>
       "64738" = "???";
+      "4190" = "???";
     };
   in ''
-    ${mode} ${builtins.toString port}: ${mappings.${builtins.toString port}}
+    ${mode} ${builtins.toString port}: ${
+      if (builtins.hasAttr "${builtins.toString port}" mappings)
+      then mappings.${builtins.toString port}
+      else
+        builtins.throw
+        "'${builtins.toString port}' is still missing from the system info port -> name map. Maybe add it?"
+    }
   '';
 
   # TODO(@bpeetz): This should probably also include the allowed TCP/UDP port ranges. <2025-01-28>