I would like to try NixOS inside an LXD VM. How should I proceed? I assume I need to create a new VM first:
lxc init my_nix --vm --empty
I can also download the NixOS Graphical ISO image https://nixos.org/download/#nixos-iso. Do I need to re-pack the NixOS ISO first, before I insert the ISO disk into the VM?
lxd-imagebuilder repack-nixos # does that option exist??
The steps I provided give you a shell prompt inside your nixOS instance. You would have to enable the graphical desktop functionality yourself. If you do, you can easily access it through the LXD UI.