2023-08-13 17:00:41 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
boot.kernelModules = ["kvm_amd"];
|
2023-04-22 12:30:19 +01:00
|
|
|
virtualisation = {
|
|
|
|
libvirtd = {
|
|
|
|
enable = true;
|
|
|
|
qemu.ovmf.enable = true;
|
2023-08-13 17:00:41 +01:00
|
|
|
allowedBridges = ["br0"];
|
2023-04-22 12:30:19 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
qemu
|
|
|
|
virt-manager
|
|
|
|
usbutils
|
|
|
|
virt-viewer
|
|
|
|
lm_sensors
|
|
|
|
];
|
2023-08-13 17:00:41 +01:00
|
|
|
networking.firewall.allowedTCPPorts = [5900];
|
2023-04-22 12:30:19 +01:00
|
|
|
|
|
|
|
security.allowUserNamespaces = true;
|
|
|
|
}
|