mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 07:08:45 +08:00
20 lines
550 B
Nix
20 lines
550 B
Nix
|
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
|