dotfiles/nixos/boxes/bolty/virtualisation.nix

22 lines
424 B
Nix
Raw Normal View History

2023-04-22 12:30:19 +01:00
{ 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;
}