mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 10:10:45 -06:00
26 lines
408 B
Nix
26 lines
408 B
Nix
{
|
|
pkgs,
|
|
enabled,
|
|
...
|
|
}:
|
|
{
|
|
programs.virt-manager = enabled;
|
|
|
|
virtualisation = {
|
|
libvirtd = enabled // {
|
|
# Enable TPM emulation (optional)
|
|
qemu = {
|
|
swtpm = enabled;
|
|
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
|
};
|
|
|
|
};
|
|
|
|
# Enable USB redirection (optional)
|
|
spiceUSBRedirection = enabled;
|
|
};
|
|
|
|
users.users.daylin = {
|
|
extraGroups = [ "libvirtd" ];
|
|
};
|
|
}
|