Open PAI5REECHO opened 2 years ago
I updated users.users.root.openssh.authorizedKeys.keys for one of my servers. boot.initrd.network.ssh.authorizedKeys should default to the aforementioned config value, but after a nixops deploy the bootloader image isn't updated with the new authorized keys. See: https://discourse.nixos.org/t/nixops-how-to-deploy-with-boot-loader-updated/19385
users.users.root.openssh.authorizedKeys.keys
boot.initrd.network.ssh.authorizedKeys
nixops deploy
Without diving into NixOps specifics, this may also be a problem with nixos-rebuild switch.
nixos-rebuild switch
nixos-rebuild offers the option --install-bootloader which always works to apply initrd changes
nixos-rebuild
--install-bootloader
I updated
users.users.root.openssh.authorizedKeys.keys
for one of my servers.boot.initrd.network.ssh.authorizedKeys
should default to the aforementioned config value, but after anixops deploy
the bootloader image isn't updated with the new authorized keys. See: https://discourse.nixos.org/t/nixops-how-to-deploy-with-boot-loader-updated/19385