2024-05-05 18:53:09 +00:00
|
|
|
{ pkgs, ... }:
|
2022-10-08 01:34:25 +00:00
|
|
|
{
|
2024-05-05 18:53:09 +00:00
|
|
|
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];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-06-04 23:16:00 +00:00
|
|
|
virtualisation.spiceUSBRedirection.enable = true;
|
2024-05-05 18:53:09 +00:00
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
2023-06-04 23:16:00 +00:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
spice-gtk
|
|
|
|
];
|
2022-10-08 01:34:25 +00:00
|
|
|
}
|