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