nixos/services/sshd: disable password and root login

This commit is contained in:
2026-05-02 21:54:00 +02:00
committed by ErrorNoInternet
parent d410685af6
commit 6a1ea68a57
+13
View File
@@ -101,6 +101,19 @@ in
}; };
}; };
services = {
openssh = {
enable = true;
settings = {
ClientAliveInterval = 300;
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
};
};
};
virtualisation.podman.enable = true; virtualisation.podman.enable = true;
zramSwap = { zramSwap = {