Changed motherboard, how to fix bootloader now?

Boot into the ISO, mount your partitions and chroot into your system using nixos-enter. Then run

NIXOS_INSTALL_BOOTLOADER=1  /run/current-system/bin/switch-to-configuration boot

That should reinstall the bootloader.

3 Likes