From 75b2100504c5d5eb242388a7c92f7819e6a2dd20 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 8 Jan 2024 21:05:38 +0530 Subject: common: move adb configuration to hosts/cez --- common.nix | 16 ++++++---------- hosts/cez/configuration.nix | 3 +++ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/common.nix b/common.nix index 188cefb..f550d7c 100644 --- a/common.nix +++ b/common.nix @@ -36,7 +36,6 @@ in uid = 1000; extraGroups = [ "wheel" - "adbusers" ] ++ groups; packages = with pkgs; [ yt-dlp @@ -94,14 +93,11 @@ in }; # programs - programs = { - adb.enable = true; - bash.promptInit = '' - PROMPT_COLOR="1;31m" - [ "$UID" -ne 0 ] && - PROMPT_COLOR="1;32m" + programs.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\] " + ''; } diff --git a/hosts/cez/configuration.nix b/hosts/cez/configuration.nix index c76550e..3a2a196 100644 --- a/hosts/cez/configuration.nix +++ b/hosts/cez/configuration.nix @@ -38,4 +38,7 @@ in }; getty.autologinUser = user; }; + + programs.adb.enable = true; + userdata.groups = [ "adbusers" ]; } -- cgit v1.2.3