nixos/roles/virtualisation.nix

14 lines
345 B
Nix
Raw Normal View History

{ pkgs, config, lib, ... }:
let
cfg = config.my.roles.virtualisation;
in {
options.my.roles.virtualisation.enable = lib.mkEnableOption "Enable tools for virtualisation";
config = lib.mkIf (cfg.enable) {
virtualisation.libvirtd.enable = true;
environment.systemPackages = with pkgs; [
qemu_full
qemu-utils
];
};
}