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:
parent
1d91c2c03d
commit
acf2240888
3 changed files with 10 additions and 0 deletions
5
hosts/common/optional/adb.nix
Normal file
5
hosts/common/optional/adb.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
programs.adb.enable = true;
|
||||
users.users.${config.hostSpec.username}.extraGroups = [ "adbusers" ];
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
])
|
||||
|
|
Loading…
Add table
Reference in a new issue