mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 10:10:45 -06:00
27 lines
456 B
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" ];
|
|
};
|
|
}
|