Adds adb support with user group configuration

- Introduces an optional module to enable adb
- Integrates adb module into host configuration
- Adds adbusers group membership to user settings
This commit is contained in:
Chris Toph 2025-04-14 13:45:59 -04:00
parent 1d91c2c03d
commit acf2240888
3 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,5 @@
{ pkgs, config, ... }:
{
programs.adb.enable = true;
users.users.${config.hostSpec.username}.extraGroups = [ "adbusers" ];
}

View file

@ -30,6 +30,7 @@ in
## Optional Configs ##
"hosts/common/optional/audio.nix" # pipewire and cli controls
"hosts/common/optional/adb.nix" # android tools
"hosts/common/optional/bluetooth.nix"
"hosts/common/optional/ddcutil.nix" # ddcutil for monitor controls
"hosts/common/optional/gaming.nix" # steam, gamescope, gamemode, and related hardware

View file

@ -30,11 +30,15 @@ in
group = "ryot";
extraGroups = lib.flatten [
"wheel"
# Some of these groups are defined elsewhere in the system
# But honestly not sure what runs first so just add them here i guess
(ifTheyExist [
"adbusers"
"audio"
"docker"
"gamemode"
"git"
"libvirtd"
"networkmanager"
"video"
])