2023-08-22 19:39:11 +03:00
|
|
|
{ pkgs, config, lib, ... }:
|
2023-08-19 11:06:28 +03:00
|
|
|
|
2023-09-06 16:10:11 +03:00
|
|
|
let cfg = config.my.roles.virtualisation;
|
2023-08-22 19:39:11 +03:00
|
|
|
in {
|
2023-09-06 16:10:11 +03:00
|
|
|
options.my.roles.virtualisation.enable =
|
|
|
|
lib.mkEnableOption "Enable tools for virtualisation";
|
2023-08-22 19:39:11 +03:00
|
|
|
config = lib.mkIf (cfg.enable) {
|
2023-08-24 11:06:09 +03:00
|
|
|
# TODO: Think if I ever need virtualisation
|
2023-08-22 19:39:11 +03:00
|
|
|
virtualisation.libvirtd.enable = true;
|
2023-09-06 16:10:11 +03:00
|
|
|
environment.systemPackages = with pkgs; [ qemu_full qemu-utils ];
|
2023-08-22 19:39:11 +03:00
|
|
|
};
|
2023-09-06 16:10:11 +03:00
|
|
|
}
|