From 255713131022205a8a98b038d026bc7bf37dd1ee Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 25 Jun 2022 19:03:54 +0200 Subject: Enable virtualisation on prefect using libvirtd --- system/settings/services/virtualisation.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 system/settings/services/virtualisation.nix (limited to 'system/settings/services') diff --git a/system/settings/services/virtualisation.nix b/system/settings/services/virtualisation.nix new file mode 100644 index 00000000..828c70eb --- /dev/null +++ b/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 + ]; +} -- cgit 1.4.1