dotfiles/nixos/boxes/bolty/virtualisation.nix

27 lines
432 B
Nix
Raw Normal View History

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
];
2024-08-25 20:54:01 +01:00
networking.firewall.allowedTCPPorts = [5900 5901];
2023-04-22 12:30:19 +01:00
security.allowUserNamespaces = true;
}