nixos/modules/services/waydroid.nix

20 lines
550 B
Nix
Raw Normal View History

2024-09-17 12:00:55 +08:00
inputs:
{
options.nixos.service.waydroid = let inherit (inputs.lib) mkOption types; in mkOption
{
type = types.nullOr (types.submodule {});
default = null;
};
config = let inherit (inputs.config.nixos.service) waydroid; in inputs.lib.mkIf waydroid != null
{ virtualisation.waydroid.enable = true; };
}
# sudo waydroid shell wm set-fix-to-user-rotation enabled
# /var/lib/waydroid/waydroid_base.prop
# default:
# ro.hardware.gralloc=gbm
# ro.hardware.egl=mesa
# nvidia:
# ro.hardware.gralloc=default
# ro.hardware.egl=swiftshader