26 lines
823 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;
2022-10-08 04:38:45 +03:00
# virtualisation.lxd.enable = true;
home-manager.users.alukard.home.packages = [ pkgs.waydroid-script ];
2022-05-30 19:31:40 +03:00
};
2022-10-08 04:38:45 +03:00
}