nixos/roles/virtualisation.nix
Ivan Bushchik 06d253b189
Aughhthghhhgh
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2023-08-24 11:06:09 +03:00

15 lines
No EOL
393 B
Nix

{ 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) {
# TODO: Think if I ever need virtualisation
virtualisation.libvirtd.enable = true;
environment.systemPackages = with pkgs; [
qemu_full
qemu-utils
];
};
}