nixos/modules/virtualisation/kvm_host.nix
2023-06-24 23:02:08 +08:00

14 lines
321 B
Nix

# TODO: disable auto usb redirection
inputs:
{
config =
{
virtualisation =
{
libvirtd = { enable = true; qemu.runAsRoot = false; onBoot = "ignore"; onShutdown = "shutdown"; };
spiceUSBRedirection.enable = true;
};
environment.systemPackages = with inputs.pkgs; [ qemu_full virt-manager win-spice ];
};
}