From f2009595d61fa5cf2eb7bb2120a27123185581b9 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 5 Jul 2023 14:47:44 +0530 Subject: adb: fix missing udev rules --- configuration.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/configuration.nix b/configuration.nix index 436da35..a193d6b 100644 --- a/configuration.nix +++ b/configuration.nix @@ -32,9 +32,8 @@ in # users users.users.${user} = { isNormalUser = true; - extraGroups = [ "wheel" ]; + extraGroups = [ "wheel" "adbusers" ]; packages = with pkgs; [ - android-tools geoipWithDatabase dig nnn @@ -72,11 +71,14 @@ in system.stateVersion = "23.05"; nix.settings.experimental-features = [ "nix-command" ]; - programs.bash.promptInit = '' - PROMPT_COLOR="1;31m" - [ "$UID" -ne 0 ] && - PROMPT_COLOR="1;32m" + programs = { + adb.enable = true; + bash.promptInit = '' + PROMPT_COLOR="1;31m" + [ "$UID" -ne 0 ] && + PROMPT_COLOR="1;32m" - PS1="\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\\$\[\033[0m\] " - ''; + PS1="\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\\$\[\033[0m\] " + ''; + }; } -- cgit v1.2.3