nixos-mods/improvedDefs/sshAuth: fix assigning root auth keys

secrix-issue25
Felix Stupp 2 months ago
parent bad7149f9c
commit 1759580a86
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -55,7 +55,7 @@ in
services.openssh.settings.PermitRootLogin = if isRootAuthed then true else lib.mkDefault false; services.openssh.settings.PermitRootLogin = if isRootAuthed then true else lib.mkDefault false;
users.users.root.openssh.authorizedKeys = lib.mkIf doRootAuth (lib.mkDefault myOpts.sshPublicKeys); users.users.root.openssh.authorizedKeys.keys = lib.mkIf doRootAuth (lib.mkDefault myOpts.sshPublicKeys);
warnings = lib.mkIf doRootAuth [ warnings = lib.mkIf doRootAuth [
'' ''
roots authorized keys were automatically configured roots authorized keys were automatically configured

Loading…
Cancel
Save