summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-07-05 14:47:44 +0530
committersinanmohd <sinan@firemail.cc>2023-07-05 14:47:44 +0530
commite7e9fbd741076a0a357cd90cd238446e4eaf514b (patch)
treedb9f7758e04cedcbabc2c2e022cbbfc0bce8b5e6
parentcad02678e29621f05183a7f03f3bae32bb4b3aeb (diff)
adb: fix missing udev rules
-rw-r--r--configuration.nix18
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\] "
+ '';
+ };
}