nixosMod/sshAuthorize: fix set PermitRootLogin

main
Felix Stupp 2 months ago
parent 31852caec4
commit ebd3ceade9
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -57,7 +57,8 @@ in
in in
{ {
services.openssh.settings.PermitRootLogin = if isRootAuthed then true else lib.mkDefault false; services.openssh.settings.PermitRootLogin =
if isRootAuthed then "prohibit-password" else lib.mkDefault "no";
users.users.root.openssh.authorizedKeys.keys = lib.mkIf doRootAuth ( users.users.root.openssh.authorizedKeys.keys = lib.mkIf doRootAuth (
lib.mkDefault myOpts.sshPublicKeys lib.mkDefault myOpts.sshPublicKeys

Loading…
Cancel
Save