nixcfg/nixosModules/apps/virt-manager/default.nix
2024-04-07 22:16:33 -04:00

18 lines
315 B
Nix

{
pkgs,
lib,
config,
...
}: {
options = {
apps.virt-manager.enable =
lib.mkEnableOption "Enables virt-manager with TPM and EFI support.";
};
config = lib.mkIf config.apps.virt-manager.enable {
programs.virt-manager.enable = true;
virtualisation = {libvirtd.enable = true;};
};
}