nix/modules/vm/default.nix

31 lines
554 B
Nix
Raw Normal View History

2024-08-21 09:02:49 +02:00
{pkgs, ...}: {
2024-06-05 20:52:52 +02:00
programs.dconf.enable = true;
2024-08-21 09:02:49 +02:00
users.users.joy.extraGroups = ["libvirtd"];
2024-06-05 20:52:52 +02:00
environment.systemPackages = with pkgs; [
virt-manager
virt-viewer
2024-08-21 09:02:49 +02:00
spice
spice-gtk
2024-06-05 20:52:52 +02:00
spice-protocol
win-virtio
win-spice
virtiofsd
2024-07-05 22:11:08 +02:00
freerdp
2024-06-05 20:52:52 +02:00
];
virtualisation = {
libvirtd = {
enable = true;
qemu = {
swtpm.enable = true;
ovmf.enable = true;
2024-08-21 09:02:49 +02:00
ovmf.packages = [pkgs.OVMFFull.fd];
2024-06-05 20:52:52 +02:00
};
};
spiceUSBRedirection.enable = true;
};
services.spice-vdagentd.enable = true;
}