2024-07-13 23:33:27 +00:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
virtualisation.libvirtd = {
|
|
|
|
enable = true;
|
|
|
|
qemu = {
|
|
|
|
package = pkgs.qemu_kvm;
|
|
|
|
runAsRoot = true;
|
|
|
|
swtpm.enable = true;
|
|
|
|
ovmf = {
|
|
|
|
enable = true;
|
|
|
|
packages = [(pkgs.OVMF.override {
|
|
|
|
secureBoot = true;
|
|
|
|
tpmSupport = true;
|
|
|
|
}).fd];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
users.users.ash.extraGroups = ["libvirtd"];
|
2024-09-11 01:37:42 +00:00
|
|
|
virtualisation.spiceUSBRedirection.enable = true;
|
2024-07-13 23:33:27 +00:00
|
|
|
}
|