nixos/modules/virtualization/virt-manager.nix

20 lines
434 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 {
2023-08-03 23:56:04 +04:00
virtualization.libvirtd.enable = true;
programs.dconf.enable = true;
2024-09-16 21:21:25 +04:00
environment.systemPackages = with pkgs; [
2023-08-03 23:56:04 +04:00
virt-manager
];
users.users.sako.extraGroups = [ "libvirtd" ];
};
}