I have a few LXC containers running NixOS on a Proxmox host. I managed to set up persistance and move /nix
into a separate ZFS volume but now I am struggling at the last step: Wipe the root volume and still be able to boot the container. LXC wants /sbin/init
or some other file with a static name configured through lxc.init.cmd
to boot the container. What file is LCX supposed to use as init
?
Dug a little bit through /nix
and found /nix/var/nix/profiles/system/init
which seems to do the trick.