10 lines
283 B
Nix
10 lines
283 B
Nix
{ pkgs, inputs, config, lib, ... }:
|
|
with lib;
|
|
let cfg = config.roles.kvm;
|
|
in {
|
|
options.roles.kvm = { enable = mkEnableOption "roles kvm"; };
|
|
config = mkIf cfg.enable {
|
|
virtualisation.libvirtd.enable = true;
|
|
environment.systemPackages = with pkgs; [ gnome-boxes ];
|
|
};
|
|
}
|