27 lines
458 B
Nix
27 lines
458 B
Nix
{ config
|
|
, lib
|
|
, pkgs
|
|
, ...
|
|
}:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.my.virtualisation.libvirtd;
|
|
in
|
|
{
|
|
options.my.virtualisation.libvirtd.enable = mkEnableOption "libvirtd";
|
|
|
|
config = mkIf cfg.enable {
|
|
virtualisation.libvirtd = {
|
|
enable = true;
|
|
package = pkgs.libvirt;
|
|
};
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
users.users.moritz = {
|
|
extraGroups = [ "libvirtd" ];
|
|
packages = with pkgs; [ virt-manager virt-viewer ];
|
|
};
|
|
};
|
|
}
|