Only open SSH port when SSH is enabled

This commit is contained in:
hektor committed 2025-11-16 16:03:03 +01:00
1 parent 7075800b57
commit 72a354c7fa
3 files changed
+13 -12

No files matched your search

-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;