diff --git a/shells/android.nix b/shells/android.nix new file mode 100644 index 0000000..9a742c2 --- /dev/null +++ b/shells/android.nix @@ -0,0 +1,15 @@ +_: { + perSystem = + { pkgs, ... }: + { + devShells.android = pkgs.mkShell { + packages = with pkgs; [ + android-tools # adb, fastboot + ]; + + shellHook = '' + alias adb-shutter-off='adb shell settings put system csc_pref_camera_forced_shuttersound_key 0' + ''; + }; + }; +} diff --git a/shells/default.nix b/shells/default.nix index f2bbc99..caf7537 100644 --- a/shells/default.nix +++ b/shells/default.nix @@ -1,5 +1,6 @@ { imports = [ ./dotnix.nix + ./android.nix ]; }