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 b49837d425
commit 33a1b912ec
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 ## ## Optional Configs ##
"hosts/common/optional/audio.nix" # pipewire and cli controls "hosts/common/optional/audio.nix" # pipewire and cli controls
"hosts/common/optional/adb.nix" # android tools
"hosts/common/optional/bluetooth.nix" "hosts/common/optional/bluetooth.nix"
"hosts/common/optional/ddcutil.nix" # ddcutil for monitor controls "hosts/common/optional/ddcutil.nix" # ddcutil for monitor controls
"hosts/common/optional/gaming.nix" # steam, gamescope, gamemode, and related hardware "hosts/common/optional/gaming.nix" # steam, gamescope, gamemode, and related hardware

View file

@ -30,11 +30,15 @@ in
group = "ryot"; group = "ryot";
extraGroups = lib.flatten [ extraGroups = lib.flatten [
"wheel" "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 [ (ifTheyExist [
"adbusers"
"audio" "audio"
"docker" "docker"
"gamemode" "gamemode"
"git" "git"
"libvirtd"
"networkmanager" "networkmanager"
"video" "video"
]) ])