change virtualisation config

This commit is contained in:
Frost-Phoenix 2024-01-27 18:53:29 +01:00
parent d288e044a0
commit 512a3b36ea

View file

@ -1,5 +1,8 @@
{ config, pkgs, username, ... }:
{
# Enable dconf (System Management Tool)
programs.dconf.enable = true;
# Add user to libvirtd group
users.users.${username}.extraGroups = [ "libvirtd" ];
@ -7,22 +10,15 @@
environment.systemPackages = with pkgs; [
virt-manager
virt-viewer
spice
spice-gtk
spice spice-gtk
spice-protocol
win-virtio
win-spice
gnome.adwaita-icon-theme
virtiofsd
];
# Manage the virtualisation services
virtualisation = {
vmware.host = {
enable = true;
package = pkgs.vmware-workstation;
};
libvirtd = {
enable = true;
qemu = {
@ -34,4 +30,4 @@
spiceUSBRedirection.enable = true;
};
services.spice-vdagentd.enable = true;
}
}