mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-10 09:43:30 +01:00
As of systemd 258 adb and fastboot connections are handled by a built-in uaccess rule, so a dedicated package with hardcoded ID-based udev rules is no longer needed. Drop the android-udev-rules package and related mentions of the adbusers group, which is also no longer used.
29 lines
497 B
Nix
29 lines
497 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
meta.maintainers = [ lib.maintainers.mic92 ];
|
|
|
|
###### interface
|
|
options = {
|
|
programs.adb = {
|
|
enable = lib.mkOption {
|
|
default = false;
|
|
type = lib.types.bool;
|
|
description = ''
|
|
Whether to configure system to use Android Debug Bridge (adb).
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
###### implementation
|
|
config = lib.mkIf config.programs.adb.enable {
|
|
environment.systemPackages = [ pkgs.android-tools ];
|
|
};
|
|
}
|