mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 23:28:56 +08:00
14 lines
321 B
Nix
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 ];
|
|
};
|
|
}
|