feat: Personal | add android development tools
This commit is contained in:
24
hosts/common/optional/android-studio.nix
Normal file
24
hosts/common/optional/android-studio.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
androidComposition = pkgs.androidenv.composeAndroidPackages {
|
||||||
|
includeNDK = true;
|
||||||
|
};
|
||||||
|
androidSdk = androidComposition.androidsdk;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment = {
|
||||||
|
systemPackages = with pkgs; [
|
||||||
|
androidSdk
|
||||||
|
android-studio-full
|
||||||
|
];
|
||||||
|
|
||||||
|
variables = let
|
||||||
|
sdkPath = "${androidSdk}/libexec/android-sdk";
|
||||||
|
in {
|
||||||
|
ANDROID_HOME = sdkPath;
|
||||||
|
ANDROID_SDK_ROOT = sdkPath;
|
||||||
|
ANDROID_NDK_ROOT = "${sdkPath}/ndk-bundle";
|
||||||
|
ANDROID_USER_HOME = "\${HOME}/.android";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -45,6 +45,7 @@
|
|||||||
#
|
#
|
||||||
(map (c: lib.custom.relativeToRoot "hosts/common/optional/${c}.nix") [
|
(map (c: lib.custom.relativeToRoot "hosts/common/optional/${c}.nix") [
|
||||||
"1password"
|
"1password"
|
||||||
|
"android-studio"
|
||||||
"claude-code"
|
"claude-code"
|
||||||
"dconf"
|
"dconf"
|
||||||
"docker"
|
"docker"
|
||||||
|
|||||||
Reference in New Issue
Block a user