However, those instructions also explain how to customize the image with things like authorized ssh keys – super useful, because it sounds like that would allow me to put an SD card into a machine, power it on, and then be able to ssh in over the network without needing a serial console.
Now, using a modified
sd-image.nix, the custom image builds (and boots) just fine. However, the
/etc/nixos/configuration.nix on the resulting system is basically empty, and doesn’t contain any of my useful changes. I know the image itself was built with them, because (for example) it is running the hardkernel kernel as requested. But,
sshd is not running, despite being added to
services in the normal way.
Looking deeper, by mounting the installer immediately after it’s made, I cannot actually see any normal-looking root filesystem there. Certainly no
configuration.nix, although there is the complete Nix store. So, questions:
When I boot my ARMv7 machine with this image, it has a root filesystem. Where does this come from?
How much should I expect from a configurable SD image? Is this a bug? It would be suuuuper neat if it could work the way I was hoping, because it would make it really easy to set up a fleet of ARM machines.