From 1835aa04051f2f0c41017423f2bcba6c549f26b0 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sun, 5 Jan 2025 16:19:45 -0600 Subject: overhual --- modules/root/software/virtualisation.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modules/root/software/virtualisation.nix (limited to 'modules/root/software/virtualisation.nix') diff --git a/modules/root/software/virtualisation.nix b/modules/root/software/virtualisation.nix new file mode 100644 index 0000000..4ae15f5 --- /dev/null +++ b/modules/root/software/virtualisation.nix @@ -0,0 +1,10 @@ +{ lib, config, ... }: { + options = { + virtualisation.enable = lib.mkEnableOption "enables virtualisation and virt-manager"; + }; + + config = lib.mkIf config.virtualisation.enable { + virtualisation.libvirtd.enable = true; + programs.virt-manager.enable = config.software.desktop.enable; + }; +} -- cgit v1.2.3