nixos-config/modules/libvirt.nix

12 lines
277 B
Nix
Raw Normal View History

2020-12-05 13:48:06 +01:00
{ config, lib, pkgs, ... }:
2020-09-12 20:54:10 +02:00
{
2020-12-05 15:37:44 +01:00
options.sbruder.libvirt.enable = lib.mkEnableOption "libvirt";
2020-09-12 20:54:10 +02:00
2020-12-05 15:37:44 +01:00
config = {
virtualisation.libvirtd.enable = config.sbruder.libvirt.enable;
environment.systemPackages = lib.mkIf config.sbruder.gui.enable [ pkgs.virt-manager ];
2020-12-05 15:37:44 +01:00
};
2020-09-12 20:54:10 +02:00
}