From 07b0c4e41f8aabb422b02bb4e8241d78516e9442 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Sat, 18 Jan 2025 18:12:28 -0600 Subject: [PATCH 1/3] oscar: Enable adb Among other effects, this module installs the `android-tools` package, which also provides `fastboot`. --- oscar/configuration.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oscar/configuration.nix b/oscar/configuration.nix index faeae26..da571b0 100644 --- a/oscar/configuration.nix +++ b/oscar/configuration.nix @@ -118,7 +118,7 @@ # Define a user account. Don't forget to set a password with ‘passwd’. users.users.chandler.isNormalUser = true; users.users.chandler.description = "Chandler Swift"; - users.users.chandler.extraGroups = [ "networkmanager" "wheel" "dialout" "cdrom" "plugdev" ]; + users.users.chandler.extraGroups = [ "networkmanager" "wheel" "dialout" "cdrom" "plugdev" "adbusers" ]; home-manager.backupFileExtension = "backup"; home-manager.users.chandler = { pkgs, ... }: { @@ -185,6 +185,8 @@ programs.thunderbird.enable = true; + programs.adb.enable = true; + programs.bash.enable = true; programs.direnv = { From 3885ea11cd5b3770a84385fd739d20028e87d70e Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Sat, 18 Jan 2025 18:12:28 -0600 Subject: [PATCH 2/3] oscar: Enable adb Among other effects, this module installs the `android-tools` package, which also provides `fastboot`. --- oscar/configuration.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oscar/configuration.nix b/oscar/configuration.nix index faeae26..abfc9d3 100644 --- a/oscar/configuration.nix +++ b/oscar/configuration.nix @@ -118,7 +118,7 @@ # Define a user account. Don't forget to set a password with ‘passwd’. users.users.chandler.isNormalUser = true; users.users.chandler.description = "Chandler Swift"; - users.users.chandler.extraGroups = [ "networkmanager" "wheel" "dialout" "cdrom" "plugdev" ]; + users.users.chandler.extraGroups = [ "networkmanager" "wheel" "dialout" "cdrom" "plugdev" "adbusers" ]; home-manager.backupFileExtension = "backup"; home-manager.users.chandler = { pkgs, ... }: { @@ -348,6 +348,8 @@ power-profiles-daemon ]; + programs.adb.enable = true; + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; From 0b3b0f26ec072853ebba278f5acbb92f3d5eec00 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Sat, 18 Jan 2025 23:10:38 -0600 Subject: [PATCH 3/3] oscar: Install scrcpy (android screen mirroring util) --- oscar/configuration.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/oscar/configuration.nix b/oscar/configuration.nix index abfc9d3..f78e757 100644 --- a/oscar/configuration.nix +++ b/oscar/configuration.nix @@ -160,6 +160,7 @@ imagemagick killall pv + scrcpy unzip wl-clipboard