nixpkgs/nixos/modules/programs/adb.nix
Tim Schumacher c06ad375eb android-udev-rules: drop
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.
2025-10-22 00:13:25 +02:00

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