18 lines
327 B
Nix
18 lines
327 B
Nix
|
{ pkgs, config, lib, ... }:
|
||
|
|
||
|
let
|
||
|
cfg = config.my.virt-manager;
|
||
|
in {
|
||
|
options.my.virt-manager = {
|
||
|
enable = lib.mkEnableOption null;
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
virtualisation.libvirtd.enable = true;
|
||
|
|
||
|
environment.systemPackages = [ pkgs.virt-manager ];
|
||
|
|
||
|
my.user.extraGroups = [ "libvirtd" ];
|
||
|
};
|
||
|
}
|