mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-24 00:28:48 +08:00
14 lines
327 B
Nix
14 lines
327 B
Nix
# TODO: disable auto usb redirection
|
|
{ pkgs, ...}@inputs:
|
|
{
|
|
config =
|
|
{
|
|
virtualisation =
|
|
{
|
|
libvirtd = { enable = true; qemu.runAsRoot = false; onBoot = "ignore"; onShutdown = "shutdown"; };
|
|
spiceUSBRedirection.enable = true;
|
|
};
|
|
environment.systemPackages = with pkgs; [ qemu_full virt-manager win-spice ];
|
|
};
|
|
}
|