profiles/server: convert part of OpenSSH config to settings attribute

This commit is contained in:
Gabriel Arazas 2023-01-29 12:03:44 +08:00
parent e5066837bf
commit 5d23c751f3

View File

@ -31,12 +31,14 @@ in
services.openssh = lib.mkDefault {
enable = true;
# Both are good for hardening as it only requires the keyfiles.
passwordAuthentication = false;
permitRootLogin = "no";
settings = {
# Making it verbose for services such as fail2ban.
logLevel = "VERBOSE";
LogLevel = "VERBOSE";
# Both are good for hardening as it only requires the keyfiles.
PasswordAuthentication = "no";
PermitRootLogin = "no";
};
};
# Manage your servers like a Linux-using basement dweller with their