The nix files I use to build NixOS LXC templates.
Build using
nix run github:nix-community/nixos-generators -- --format proxmox-lxc --configuration lxc.nix
To avoid the busctl error: (apparently patched)
- Build image
- Run image
- Update nix channels as root
- Reboot.
- Install desired configuration.nix and attempt to switch to it
- Force a reboot
sudo reboot -f