I had the following problem:
In my nixos hardware-configuration.nix I have several partitions that are loaded by label. They are the main ones plus extra partitions for backups.
I decided to format one of the partitions of backups but unfortunatelly I forgot to change the entry in the /etc/nixos/hardware-configuration.nix
After a boot now the systemd is not able to boot. My initial guess that it is going to systemd emergency mode because:
> systemctl show -property Requires local-fs.target Requires:-.mount blabla.mount bloblo.mount
and one of these. let say bloblo.mount is not working as this partition is not there anymore (is not part of the system just a partition with backups).
Note that the systemd actually stops when it arrives to the systemd-timesyncd service (but this might be not important).
The main problem is that I can not do any nixos-rebuild in the terminal of systemd emergeny as the network seems not working. Also most of the files that could be edited, potentially, to solve the issue are read-only. So, I have no idea on how to have the system working again.
Any idea/help will be very very welcome!!!