all repos — nixfiles @ 255713131022205a8a98b038d026bc7bf37dd1ee

System and user configuration, managed by nix and home-manager

Enable virtualisation on prefect using libvirtd

Alan Pearce
commit

255713131022205a8a98b038d026bc7bf37dd1ee

parent

5578f2e6a0214eb7f2d255d431aca5697315b720

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 + ]; +}