dotfiles/nixos/boxes/bolty/virtualisation.nix
Cyryl Płotnicki 5e02f642b9
Some checks failed
use nix / build (push) Failing after 4m15s
open 5901 for vnc on bolty
2024-08-25 20:54:01 +01:00

26 lines
432 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 5901];
security.allowUserNamespaces = true;
}