

The issue isn’t fstab. The nixos thing posted there would have the exact same issue: if nofail wasn’t included in the configuration, the system would go to emergency mode when it can’t find a drive.
Fstab is the “File System Table”, and NixOS still uses it. In your case, a non-essential auto-mounting drive was not correctly flagged as “nofail” in your Fstab; when the system couldn’t find that drive it treated it as essential and locked the system down.





NixOS config just sets Fstab. The issue was “nofail” was not set. This config calls that out which is good, but the issue isn’t fstab, it’s wherever OP got guidance on automounting drives in fstab as that guidance clearly failed to highlight the importance of the nofail mount option.