add: vm module

This commit is contained in:
ooks-io 2023-10-20 11:48:55 +13:00
parent b70dddf597
commit feb147be01
2 changed files with 31 additions and 0 deletions

View file

@ -3,6 +3,7 @@
../standard
../standard/wayland
../music
../vm
../standard/wayland/eww
./tty-init.nix

View file

@ -0,0 +1,30 @@
{config, pkgs, ... }:
{
programs.dconf.enable = true;
environment.systemPackages = with pkgs; [
virt-manager
virt-viewer
spice
spice-gtk
spice-protocol
win-virtio
win-spice
gnome.adwaita-icon-theme
];
virtualisation = {
libvirtd = {
enable = true;
qemu = {
swtpm.enable = true;
ovmf.enable = true;
ovmf.packages = [ pkgs.OVMFFull.fd ];
};
};
spiceUSBRedirection.enable = true;
};
services.spice-vdagentd.enable = true;
}