From 3910f14eef3e9b45b62853b5def4eb0c47cc982c Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Mon, 4 May 2026 18:53:17 -0400 Subject: [PATCH] nixos/openssh: dynamically use openssh port for firewall --- nixos/openssh.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/openssh.nix b/nixos/openssh.nix index 651763b..4890894 100644 --- a/nixos/openssh.nix +++ b/nixos/openssh.nix @@ -1,3 +1,4 @@ +{ config, ... }: { services.openssh = { enable = true; @@ -12,5 +13,5 @@ }; }; - networking.firewall.allowedTCPPorts = [ 22 ]; + networking.firewall.allowedTCPPorts = config.services.openssh.ports; }