I’m trying to get NixOS running on a SSD attached to a Raspberry Pi 4 B via USB. I have the RPi4 booting from USB. It can boot RaspBerry Pi OS images from the SSD. However, everything I’ve tried via NixOS can’t mount the root partition from initrd. Over the last two weeks I’ve read a dozen different blog posts and wiki entries about this, and followed those directions plus the variations I could think of. I’m stuck.
Can someone point me in the right direction? Or is running from USB not possible right now?
I’m booting a Pi 4 from an SSD – haven’t had any crazy issues. The repo I have that configuration in is private, but a few excerpts if they’d be helpful:
I build the image as:
Okay, some progress. Importing all-hardware is enough to get it to boot. I didn’t know about this module before; it lists every module that might help into boot.initrd.availableKernelModules. Now I’ll try to figure out which modules I actually need.