added virt

This commit is contained in:
twoneis 2023-11-24 23:15:30 +01:00
parent fda2175fa5
commit ddeb33ed7f
2 changed files with 31 additions and 0 deletions

30
modules/virt/default.nix Normal file
View file

@ -0,0 +1,30 @@
{ pkgs, ... }: {
programs.dconf.enable = true;
users.users.twoneis.extraGroups = [ "libvirtd" ];
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 = true;
}