nixos/modules/virtualization/virt-manager.nix

21 lines
437 B
Nix
Raw Normal View History

2023-08-03 23:56:04 +04:00
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.virtualization.libvirtd;
in
{
options.modules.virtualization.libvirtd = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
virtualization.libvirtd.enable = true;
programs.dconf.enable = true;
environtment.systemPackages = with pkgs; [
virt-manager
];
users.users.sako.extraGroups = [ "libvirtd" ];
};
}