24 lines
747 B
Nix
Raw Normal View History

2022-07-02 19:30:20 +03:00
{ config, pkgs, lib, ... }:
let
waydroidGbinderConf = pkgs.writeText "waydroid.conf" ''
[General]
ApiLevel = 29
'';
# anboxGbinderConf = pkgs.writeText "anbox.conf" ''
# [Protocol]
# /dev/anbox-binder = aidl2
# /dev/anbox-vndbinder = aidl2
# /dev/anbox-hwbinder = hidl
# [ServiceManager]
# /dev/anbox-binder = aidl2
# /dev/anbox-vndbinder = aidl2
# /dev/anbox-hwbinder = hidl
# '';
in {
2022-05-30 19:31:40 +03:00
config = lib.mkIf config.deviceSpecific.isGaming {
2022-07-02 19:30:20 +03:00
environment.etc."gbinder.d/waydroid.conf".source = lib.mkForce waydroidGbinderConf;
# environment.etc."gbinder.d/anbox.conf".source = lib.mkForce anboxGbinderConf;
2022-05-30 19:31:40 +03:00
virtualisation.waydroid.enable = true;
virtualisation.lxd.enable = true;
};
}