refactor: Disable SSH login using password

This commit is contained in:
Inex Code
2025-03-28 17:08:09 +03:00
parent 2ee27353da
commit b571449efe
2 changed files with 1 additions and 9 deletions

View File

@@ -99,9 +99,8 @@ in
services.openssh = { services.openssh = {
enable = config.selfprivacy.ssh.enable; enable = config.selfprivacy.ssh.enable;
settings = { settings = {
PasswordAuthentication = config.selfprivacy.ssh.passwordAuthentication; PasswordAuthentication = false;
PermitRootLogin = "yes"; PermitRootLogin = "yes";
LoginGraceTime = 0;
}; };
openFirewall = false; openFirewall = false;

View File

@@ -108,13 +108,6 @@ with lib;
type = types.nullOr (types.listOf types.str); type = types.nullOr (types.listOf types.str);
default = [ "" ]; default = [ "" ];
}; };
passwordAuthentication = mkOption {
description = ''
Password authentication for SSH
'';
default = false;
type = types.nullOr types.bool;
};
}; };
########### ###########
# Users # # Users #