From ffd4313deca8328976dc33c0c5e7a252e1ed7047 Mon Sep 17 00:00:00 2001 From: ryan4yin Date: Sun, 7 May 2023 23:44:24 +0800 Subject: [PATCH] fix: add android development tools - adb/fastboot --- modules/system.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/system.nix b/modules/system.nix index d4e89acf..79136e6b 100644 --- a/modules/system.nix +++ b/modules/system.nix @@ -146,7 +146,6 @@ # embedded development minicom - android-tools ]; @@ -184,14 +183,18 @@ udev.packages = with pkgs; [ gnome.gnome-settings-daemon platformio # udev rules for platformio + android-udev-rules ]; }; + # android development tools, this will install adb/fastboot and other android tools automatically + programs.adb.enable = true; + # Define a user account. Don't forget to set a password with ‘passwd’. users.users.ryan = { isNormalUser = true; description = "ryan"; - extraGroups = [ "users" "networkmanager" "wheel" "docker" "wireshark" ]; + extraGroups = [ "users" "networkmanager" "wheel" "docker" "wireshark" "adbusers" ]; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJx3Sk20pLL1b2PPKZey2oTyioODrErq83xG78YpFBoj admin@ryan-MBP" ];