NixOS / nixops

NixOps is a tool for deploying to NixOS machines in a network or cloud.
https://nixos.org/nixops
GNU Lesser General Public License v3.0
1.86k stars 365 forks source link

Bootloader initrd image not updating #1534

Open PAI5REECHO opened 2 years ago

PAI5REECHO commented 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

roberth commented 2 years ago

Without diving into NixOps specifics, this may also be a problem with nixos-rebuild switch.

PAI5REECHO commented 2 years ago

nixos-rebuild offers the option --install-bootloader which always works to apply initrd changes