nix-conf/modules/nixos/virtualization/default.nix
2024-04-11 13:15:25 +05:30

21 lines
399 B
Nix

{
config,
lib,
...
}: {
options = {
virtualization.enable = lib.mkEnableOption "enable virtualization";
};
config = lib.mkIf config.virtualization.enable {
virtualisation = {
docker.enable = true;
incus.enable = true;
libvirtd.enable = true;
lxc = {
enable = true;
lxcfs.enable = true;
};
waydroid.enable = true;
};
};
}