alqueva/hosts/shared/libvirt.nix

23 lines
391 B
Nix
Raw Normal View History

2024-11-02 17:48:54 +00:00
{
config,
lib,
pkgs,
...
}: let
cfg = config.alqueva.programs.libvirt;
2024-11-02 17:48:54 +00:00
in {
options.alqueva.programs.libvirt = {
2024-11-02 17:48:54 +00:00
enable = lib.mkEnableOption "libvirt";
};
config = lib.mkIf cfg.enable {
virtualisation.libvirtd = {
enable = true;
qemu.package = pkgs.qemu_kvm;
};
programs.virt-manager.enable = true;
networking.nftables.enable = true;
};
}