diff options
author | sinanmohd <sinan@sinanmohd.com> | 2023-07-05 14:47:44 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2023-07-05 14:47:44 +0530 |
commit | f2009595d61fa5cf2eb7bb2120a27123185581b9 (patch) | |
tree | db9f7758e04cedcbabc2c2e022cbbfc0bce8b5e6 /configuration.nix | |
parent | dd784274beefa74ec7606f2fcb115a8f8670c67e (diff) |
adb: fix missing udev rules
Diffstat (limited to 'configuration.nix')
-rw-r--r-- | configuration.nix | 18 |
1 files 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\] " + ''; + }; } |