nixos/modules/virtualization/virt-manager.nix

15 lines
365 B
Nix

{ outputs, options, config, lib, pkgs, ...}:
let
cfg = config.modules.virtualization.libvirtd;
in
{
options.modules.virtualization.libvirtd = {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable {
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
users.users.sako.extraGroups = [ "libvirtd" ];
};
}