the root shall be readonly after system setup is finished. thats why /nix is mounted rw seperately.
mount /dev/mmcblk0p2 -o subvol=debian /mount /dev/mmcblk0p2 -o subvol=nix /nix
Output
systemctl status nix-daemon: dead
the nix install script puts the `nix-daemon.service` and `nix-daemon.socket` into /nix/var...
these files include the lines
```
RequiresMountsFor=/nix/var
RequiresMountsFor=/nix/store
```
and symlinked to /etc/systemd/system/nix-daemon.s*
so, nix-daemon doesnt start on boot since it gets loaded before /nix is mounted. systemd fails to wait for the mounts since the symlink cannot get resolved.
my workaround is to replace the /etc/systemd/system/ symlinks with the actual files
Platform
Additional information
the root shall be readonly after system setup is finished. thats why /nix is mounted rw seperately.
mount /dev/mmcblk0p2 -o subvol=debian /
mount /dev/mmcblk0p2 -o subvol=nix /nix
Output
systemctl status nix-daemon: dead
the nix install script puts the `nix-daemon.service` and `nix-daemon.socket` into /nix/var... these files include the lines ``` RequiresMountsFor=/nix/var RequiresMountsFor=/nix/store ``` and symlinked to /etc/systemd/system/nix-daemon.s* so, nix-daemon doesnt start on boot since it gets loaded before /nix is mounted. systemd fails to wait for the mounts since the symlink cannot get resolved. my workaround is to replace the /etc/systemd/system/ symlinks with the actual filesPriorities
Add :+1: to issues you find important.