fix: set lib.mkDefault false for SSH -> PasswordAuthentication

This commit is contained in:
Ahwx 2024-10-18 20:35:28 +02:00
parent a20639e029
commit 312754fe05

View file

@ -1,10 +1,10 @@
{ ... }: { lib, ... }:
{ {
services.openssh = { services.openssh = {
enable = true; enable = true;
ports = [22]; ports = [22];
settings = { settings = {
PasswordAuthentication = false; PasswordAuthentication = lib.mkDefault false;
AllowUsers = null; AllowUsers = null;
PermitRootLogin = "no"; PermitRootLogin = "no";
LoginGraceTime = 0; LoginGraceTime = 0;