Unable to use --vm flag with LXD due to PATH error

❯ lxc launch ubuntu:22.04 master --vm
Creating master
Error: Failed instance creation: Failed creating instance record: Instance type "virtual-machine" is not supported on this server: QEMU command not available for CPU architecture

From what I understand, the only requirement is that the QEMU binary is in $PATH.

❯ uname -a
Linux nixos 5.15.74 #1-NixOS SMP Sat Oct 15 05:59:05 UTC 2022 x86_64 GNU/Linux
❯ which qemu-system-x86_64
/run/current-system/sw/bin/qemu-system-x86_64

So why is LXD not picking it up?

What does cat /proc/<lxd pid/environ show?

Did you reload LXD after changing the PATH to include qemu-system-x86_64?