Failed to install bootloader warning: error(s) occurred while switching to the new configuration

Yes it’s not ideal but you have to literally manually delete files in /boot, and not even with nix, as the first step.