Boot Error with using gpt-auto instead of fstab

I have switched from fstab to gpt-auto in the boot.initrd.systemd.root option and I got this boot time error, does anyone know what the problem could be?:

My partitions isn’t anything fancy either, I just applied to code snippet below and the boot time error happened.

My hardware configuration was generated with nixos-generate-config --no-filesystems
Relevant code snippet:

  boot = {
    initrd = {
      systemd = {
        emergencyAccess = true;
        root = "gpt-auto";
      supportedFilesystems = {
        btrfs = true;
        vfat = true;

This got solved in Matrix. Link