summaryrefslogtreecommitdiff
path: root/modules/root/software/virtualisation.nix
blob: 4ae15f541255bb0ad8e2ac04e6d818a7ba8f3891 (plain)
1
2
3
4
5
6
7
8
9
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;
	};
}