Hi all,
I installed nix
on a server running Ubuntu 20.04, with a separate /nix
bind-mount. But nix-daemon
doesn’t start on boot and I have to do the following manually on each reboot:
sudo systemctl daemon-reload
sudo systemctl start nix-daemon
The relavent bits in /etc/fstab
is the following:
/dev/nvme0n1p5 /mnt/ssd ext4 defaults 0 2
# bind mount /nix
/mnt/ssd/nix /nix none bind,x-systemd.requires=/mnt/ssd 0 0
I took a look at journalctl -b
, but there’s no mentioning of nix-daemon
at all, not even an error message.
One interesting thing is that I have to do systemctl daemon-reload
on each reboot, otherwise systemd
won’t recognize nix-daemon
:
Unit nix-daemon.service could not be found.
Does this mean that the /nix
partition was not visible to systemd
during the early initialization s.t. the nix-daemon
unit doesn’t get loaded at all?
If so, should I try to mount /mnt/data
and nix
partitions in initramfs
? How?