nixos/modules/virtualization/virt-manager.nix
2024-08-01 16:24:09 +04:00

19 lines
435 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 {
virtualization.libvirtd.enable = true;
programs.dconf.enable = true;
environtment.systemPackages = with pkgs; [
virt-manager
];
users.users.sako.extraGroups = [ "libvirtd" ];
};
}