boot.initrd.network.ssh.authorizedKeys
NixOS option
Authorized keys for the root user on initrd. You can combine the authorizedKeys and authorizedKeyFiles options.
type: list of stringDefault
config.users.users.root.openssh.authorizedKeys.keys
Example
declared in: nixos/modules/system/boot/initrd-ssh.nixView source on NixOS/nixpkgs →[ "ssh-rsa AAAAB3NzaC1yc2etc/etc/etcjwrsh8e596z6J0l7 example@host" "ssh-ed25519 AAAAC3NzaCetcetera/etceteraJZMfk3QPfQ foo@bar" ]