Unable to rebuild due to bootloader error

I’ve been using nixos on my laptop for a while and it was working great. This weekend i was wanted to try plymouth, so i used the config in the wiki and everything seemed fine, but today when I tried to do a rebuild I get the following error:

error:
       Failed assertions:
       - You must set the option ‘boot.loader.grub.devices’ or 'boot.loader.grub.mirroredBoots' to make the system bootable.

I can boot into my system and it works as usual, but when I can’t rebuild it, not even to disable plymouth. Has anyone had this error? Does anyone know what could be going on?

You need to have a bootloader configured, and you don’t. Are you using EFI boot, and which bootloader (grub2 or system-boot) do you want to use?

Hi, thanks for your answer. I’m using an uefi, and I think was using systemd-boot. I installed nixos using the calamares installer, I thought it took care of setting up the bootloader because I’ve using it for 6 months already and I hadn’t encounter any issue.