nixos/openssh: dynamically use openssh port for firewall
This commit is contained in:
+2
-1
@@ -1,3 +1,4 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
@@ -12,5 +13,5 @@
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
networking.firewall.allowedTCPPorts = config.services.openssh.ports;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user