add virtualisation option

This commit is contained in:
Aditya 2024-04-11 11:23:51 +05:30
parent ea040a6d5e
commit 7dfe959bcc
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU

View file

@ -1,12 +1,21 @@
_: {
virtualisation = {
docker.enable = true;
incus.enable = true;
libvirtd.enable = true;
lxc = {
enable = true;
lxcfs.enable = true;
{
config,
libs,
...
}: {
options = {
virtualisation.enable = lib.mkEnableOption "enable virtualisation";
};
config = lib.mkIf config.virtualisation.enable {
virtualisation = {
docker.enable = true;
incus.enable = true;
libvirtd.enable = true;
lxc = {
enable = true;
lxcfs.enable = true;
};
waydroid.enable = true;
};
waydroid.enable = true;
};
}