nixos-config/hosts/thinkpad/modules/virtualisation/default.nix

27 lines
582 B
Nix
Raw Normal View History

2023-07-30 19:41:51 +02:00
{ config, pkgs, ... }:
2023-07-03 10:19:14 +02:00
{
virtualisation = {
libvirtd = {
enable = true;
qemu = {
runAsRoot = false;
swtpm.enable = true;
ovmf.packages = [
(pkgs.OVMF.override ({
tpmSupport = true;
secureBoot =
true;
})).fd
];
};
};
spiceUSBRedirection.enable = true;
};
# allow libvirts internal network stuff
networking.firewall.trustedInterfaces = [ "virbr0" ];
programs.virt-manager.enable = true;
2023-07-03 10:19:14 +02:00
environment.systemPackages = with pkgs; [
virt-viewer
];
}