modules: services: ssh-server: use 'settings'

This commit is contained in:
Bruno BELANYI 2023-01-28 22:49:57 +01:00
parent 0821334a0a
commit 6b4c01a242
1 changed files with 6 additions and 3 deletions

View File

@ -12,9 +12,12 @@ in
services.openssh = {
# Enable the OpenSSH daemon.
enable = true;
# Be more secure
permitRootLogin = "no";
passwordAuthentication = false;
settings = {
# Be more secure
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
# Opens the relevant UDP ports.