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

28 lines
606 B
Nix
Raw Normal View History

2023-12-29 19:47:57 +01:00
{ pkgs, ... }:
2023-07-03 10:19:14 +02:00
{
virtualisation = {
2024-02-11 19:58:56 +01:00
docker.enable = true;
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
2024-02-18 17:08:02 +01:00
networking.firewall.trustedInterfaces = [ "virbr0" "br0" ];
programs.virt-manager.enable = true;
2023-07-03 10:19:14 +02:00
environment.systemPackages = with pkgs; [
virt-viewer
];
}