diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/by-name/sy/system-info/module.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/by-name/sy/system-info/module.nix b/modules/by-name/sy/system-info/module.nix index 5e2da31..8136ae5 100644 --- a/modules/by-name/sy/system-info/module.nix +++ b/modules/by-name/sy/system-info/module.nix @@ -38,9 +38,16 @@ # 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> |