2024-01-05 18:00:51 +08:00
|
|
|
{ pkgs
|
|
|
|
, lib
|
|
|
|
, config
|
|
|
|
, ... }: with lib; let
|
2024-01-07 22:01:31 +08:00
|
|
|
cfg = config.global.android;
|
2024-01-05 18:00:51 +08:00
|
|
|
in {
|
2024-01-07 22:01:31 +08:00
|
|
|
options.global.android = {
|
2024-01-05 18:00:51 +08:00
|
|
|
enable = mkEnableOption "android tools";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.adb.enable = true;
|
|
|
|
|
|
|
|
# allow device access by admin users
|
|
|
|
users.adminGroups = [ "adbusers" ];
|
|
|
|
};
|
|
|
|
}
|