Enable virtualisation on prefect using libvirtd
1 file changed, 19 insertions(+), 0 deletions(-)
changed files
A system/settings/services/virtualisation.nix
@@ -0,0 +1,19 @@ +{ config, pkgs, ... }: + +{ + virtualisation.libvirtd = { + enable = true; + onBoot = "ignore"; + onShutdown = "shutdown"; + qemu = { + package = pkgs.qemu_kvm; + ovmf.enable = true; + runAsRoot = false; + }; + }; + + environment.systemPackages = with pkgs; [ + virtmanager + OVMF + ]; +}