change: move vm to system

This commit is contained in:
ooks-io 2023-10-20 11:53:01 +13:00
parent b447abe057
commit 3b726039cd

32
system/common/opt/vm.nix Normal file
View file

@ -0,0 +1,32 @@
{config, pkgs, ... }:
{
programs.dconf.enable = true;
users.users.gcis.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.enable = true;
}