nixos/modules/virtualisation/kvm_host.nix

14 lines
327 B
Nix
Raw Normal View History

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