nixos/global/android/default.nix

18 lines
311 B
Nix
Raw Normal View History

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" ];
};
}