/nix/store/<hash>-grub-2.06/sbin/grub-install: error: /boot doesn't look like an EFI partition

[sapi0l@Lenovo:/etc/nixos/nixos-config]$ sudo nixos-rebuild switch --flake .#laptop
[sudo] password for sapi0l:
warning: Git tree '/etc/nixos/nixos-config' is dirty
building the system configuration...
warning: Git tree '/etc/nixos/nixos-config' is dirty
updating GRUB 2 menu...
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
lsblk: /dev/mapper/no*[0-9]: not a block device
lsblk: /dev/mapper/raid*[0-9]: not a block device
lsblk: /dev/mapper/disks*[0-9]: not a block device
installing the GRUB 2 EFI boot loader into /boot...
Installing for x86_64-efi platform.
/nix/store/w3sn3aycm5aiw0fswd1y3x1shsyddmw0-grub-2.06/sbin/grub-install: error: /boot doesn't look like an EFI partition.
/nix/store/kdlihrdxakv00jm07vqix8svk2wssdcq-install-grub.pl: installation of GRUB EFI into /boot failed: Inappropriate ioctl for device
warning: error(s) occurred while switching to the new configuration

what am I doing wrong here?
This is my nixos-config

I’m trying to install fcitx5 and fcitx-mozc so I can type in Japanese.
The latest generation of my nixos fails to boot. (I forgot the error code, maybe I’ll paste here later)