dotfiles/nixos/boxes/bolty/virtualisation.nix
2023-04-22 12:30:19 +01:00

21 lines
424 B
Nix

{ config, pkgs, inputs, lib, ... }: {
boot.kernelModules = [ "kvm_amd" ];
virtualisation = {
libvirtd = {
enable = true;
qemu.ovmf.enable = true;
allowedBridges = [ "br0" ];
};
};
environment.systemPackages = with pkgs; [
qemu
virt-manager
usbutils
virt-viewer
lm_sensors
];
networking.firewall.allowedTCPPorts = [ 5900 ];
security.allowUserNamespaces = true;
}