mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 04:24:28 +03:00
Fix adb program module
This commit is contained in:
parent
3bfd3e73bf
commit
8122431953
@ -16,7 +16,7 @@ with lib;
|
|||||||
To grant access to a user, it must be part of adbusers group:
|
To grant access to a user, it must be part of adbusers group:
|
||||||
<code>users.users.alice.extraGroups = ["adbusers"];</code>
|
<code>users.users.alice.extraGroups = ["adbusers"];</code>
|
||||||
'';
|
'';
|
||||||
relatedPackages = [ ["androidenv" "platformTools"] ];
|
relatedPackages = [ ["androidenv" "androidPkgs_9_0" "platform-tools"] ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -24,7 +24,7 @@ with lib;
|
|||||||
###### implementation
|
###### implementation
|
||||||
config = mkIf config.programs.adb.enable {
|
config = mkIf config.programs.adb.enable {
|
||||||
services.udev.packages = [ pkgs.android-udev-rules ];
|
services.udev.packages = [ pkgs.android-udev-rules ];
|
||||||
environment.systemPackages = [ pkgs.androidenv.platformTools ];
|
environment.systemPackages = [ pkgs.androidenv.androidPkgs_9_0.platform-tools ];
|
||||||
users.groups.adbusers = {};
|
users.groups.adbusers = {};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user