nixos/modules/virtualisation/kvm_host.nix

14 lines
321 B
Nix
Raw Normal View History

2023-06-09 20:54:03 +08:00
# TODO: disable auto usb redirection
2023-06-24 23:00:02 +08:00
inputs:
{
config =
{
2023-06-19 15:25:39 +08:00
virtualisation =
{
libvirtd = { enable = true; qemu.runAsRoot = false; onBoot = "ignore"; onShutdown = "shutdown"; };
spiceUSBRedirection.enable = true;
};
2023-06-24 23:00:02 +08:00
environment.systemPackages = with inputs.pkgs; [ qemu_full virt-manager win-spice ];
};
}