diff options
author | Alan Pearce | 2022-06-25 19:03:54 +0200 |
---|---|---|
committer | Alan Pearce | 2022-10-08 01:36:11 +0200 |
commit | 255713131022205a8a98b038d026bc7bf37dd1ee (patch) | |
tree | 6136a601e9353278372143e9203363b8c968a94a /system/settings/services | |
parent | 5578f2e6a0214eb7f2d255d431aca5697315b720 (diff) | |
download | nixfiles-255713131022205a8a98b038d026bc7bf37dd1ee.tar.lz nixfiles-255713131022205a8a98b038d026bc7bf37dd1ee.tar.zst nixfiles-255713131022205a8a98b038d026bc7bf37dd1ee.zip |
Enable virtualisation on prefect using libvirtd
Diffstat (limited to 'system/settings/services')
-rw-r--r-- | system/settings/services/virtualisation.nix | 19 |
1 files changed, 19 insertions, 0 deletions
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 + ]; +} |