feat(virtualisation): add waydroid
This commit is contained in:
@@ -38,7 +38,10 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
extraGroups = [ "video" ];
|
extraGroups = [ "video" ];
|
||||||
};
|
};
|
||||||
virtualisation.enable = true;
|
virtualisation = {
|
||||||
|
enable = true;
|
||||||
|
waydroid = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
|
|||||||
@@ -13,6 +13,11 @@ in
|
|||||||
default = [ "johno" ];
|
default = [ "johno" ];
|
||||||
description = "List of users to add to the docker group";
|
description = "List of users to add to the docker group";
|
||||||
};
|
};
|
||||||
|
waydroid = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Enable waydroid support";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable
|
config = mkIf cfg.enable
|
||||||
@@ -21,5 +26,6 @@ in
|
|||||||
programs.virt-manager.enable = true;
|
programs.virt-manager.enable = true;
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
users.extraGroups.docker.members = cfg.dockerUsers;
|
users.extraGroups.docker.members = cfg.dockerUsers;
|
||||||
|
virtualisation.waydroid.enable = cfg.waydroid;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user