Only open SSH port when SSH is enabled

This commit is contained in:
2025-11-16 16:03:03 +01:00
parent 7075800b57
commit 72a354c7fa
3 changed files with 13 additions and 12 deletions
-1
View File
@@ -46,7 +46,6 @@
};
networking.hostId = "80eef97e";
networking.firewall.allowedTCPPorts = [ 22 ];
services.openssh = {
enable = true;
harden = true;
-1
View File
@@ -66,7 +66,6 @@
services.qemuGuest.enable = true;
services.spice-vdagentd.enable = true;
networking.firewall.allowedTCPPorts = [ 22 ];
services.openssh = {
enable = true;
harden = true;