nixos/modules/virtualization/virt-manager.nix

16 lines
365 B
Nix
Raw Normal View History

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 {
2024-09-16 21:22:10 +04:00
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
users.users.sako.extraGroups = [ "libvirtd" ];
2023-08-03 23:56:04 +04:00
};
}