nix/modules/services/vm/default.nix

35 lines
580 B
Nix
Raw Normal View History

2024-11-08 18:23:40 +01:00
{
pkgs,
username,
...
}: {
2024-08-31 16:04:57 +02:00
programs.dconf.enable = true;
2024-11-08 18:23:40 +01:00
users.users.${username}.extraGroups = ["libvirtd"];
2024-08-31 16:04:57 +02:00
environment.systemPackages = with pkgs; [
virt-manager
virt-viewer
spice
spice-gtk
spice-protocol
win-virtio
win-spice
virtiofsd
freerdp
];
virtualisation = {
libvirtd = {
enable = true;
qemu = {
swtpm.enable = true;
ovmf.enable = true;
ovmf.packages = [pkgs.OVMFFull.fd];
};
};
spiceUSBRedirection.enable = true;
};
services.spice-vdagentd.enable = true;
}