nixops
nixops copied to clipboard
Bootloader initrd image not updating
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
Without diving into NixOps specifics, this may also be a problem with nixos-rebuild switch.
nixos-rebuild offers the option --install-bootloader which always works to apply initrd changes