adjust libvirt

This commit is contained in:
陈浩南 2023-06-19 15:25:39 +08:00
parent 553c6d609d
commit fadbeea8c3

View File

@ -3,7 +3,11 @@
{
config =
{
virtualisation = { libvirtd.enable = true; spiceUSBRedirection.enable = true; };
environment.systemPackages = with pkgs; [ qemu_full virt-manager ];
virtualisation =
{
libvirtd = { enable = true; qemu.runAsRoot = false; onBoot = "ignore"; onShutdown = "shutdown"; };
spiceUSBRedirection.enable = true;
};
environment.systemPackages = with pkgs; [ qemu_full virt-manager win-spice ];
};
}