Add support for ADB

This commit is contained in:
Andreas Zweili 2024-02-25 09:31:49 +01:00
parent 9f9906ea0b
commit a42c7bcc1f
3 changed files with 21 additions and 0 deletions

View File

@ -10,6 +10,7 @@
./misc/username
./profiles/desktop
./profiles/server
./programs/adb
./programs/distrobox
./programs/eog
./programs/libimobiledevice

View File

@ -0,0 +1,19 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.az-adb;
in
{
options = {
programs.az-adb.enable = lib.mkEnableOption "Enable and configure ADB";
};
config = lib.mkIf cfg.enable {
programs.adb.enable = true;
users.users."${config.az-username}".extraGroups = [ "adbusers" ];
};
}

View File

@ -73,6 +73,7 @@
profiles.az-desktop.enable = true;
programs = {
az-adb.enable = true;
az-distrobox.enable = true;
az-lockscreen.enable = true;
az-makemkv.enable = true;