oizys/hosts/othalan/virt.nix

28 lines
456 B
Nix
Raw Normal View History

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