oizys/hosts/othalan/virt.nix

27 lines
456 B
Nix

{
pkgs,
enabled,
...
}:
{
programs.virt-manager = enabled;
virtualisation = {
libvirtd = enabled // {
# Enable TPM emulation (optional)
qemu = {
swtpm = enabled;
ovmf.packages = [ pkgs.OVMFFull.fd ];
vhostUserPackages = [ pkgs.virtiofsd ];
};
};
# Enable USB redirection (optional)
spiceUSBRedirection = enabled;
};
users.users.daylin = {
extraGroups = [ "libvirtd" ];
};
}