Installing nixos - empty boot directory

Today I was installing NixOS on a new drive and for some reason /boot ended up being empty. Do any of you have any idea what’s wrong?

I also tried --install-bootloader flag, but it ended up erroring out. Same thing after nixos-enter

Info:

  • 22.11 iso was used (latest)
  • zfs
  • systemd-boot

Need more details. What does hardware-configuration.nix look like? What did the error you mentioned say?