diff --git a/tasks/workstation/linux/software/llm.yml b/tasks/workstation/linux/software/llm.yml index 032706c..73f9197 100644 --- a/tasks/workstation/linux/software/llm.yml +++ b/tasks/workstation/linux/software/llm.yml @@ -537,18 +537,21 @@ path: "{{ user_user.home }}/AI-Sandbox/{{ item }}" marker: "# {mark} | MANAGE BY ANSIBLE | Env Vars" content: | - if [[ -d $HOME/bin ]]; then + if [[ -d "$HOME/bin" ]]; then export PATH="$HOME/bin:$PATH" fi - export ANDROID_HOME="/home/user/SDKs/Android/Sdk" + export ANDROID_HOME="{{ user_user.home }}/SDKs/Android/Sdk" + export GRADLE_USER_HOME={{ user_user.home }}/.gradle + export GRADLE_HOME={{ user_user.home }}/.gradle export PATH="$ANDROID_HOME/platform-tools:$PATH" export PATH="$ANDROID_HOME/cmdline-tools/latest/bin:$PATH" - export FLUTTER_HOME="/home/user/SDKs/Flutter/flutter" + export FLUTTER_HOME="{{ user_user.home }}/SDKs/Flutter/flutter" + export PUB_CACHE={{ user_user.home }}/.pub_cache export PATH="$FLUTTER_HOME/bin:$PATH" - export JAVA_HOME="/home/user/SDKs/Java" + export JAVA_HOME="/{{ user_user.home }}/SDKs/Java" export PATH="$JAVA_HOME/bin:$PATH" create: false backup: false @@ -571,7 +574,7 @@ - You are running in a Docker container called Open Terminal. We are communicating via Open WebUI, also being run in a Docker container. You are the user `user` and have been granted access to - the user's projects through a mount on `/home/user/Code`. + the designer's Code and SDKs via mount at `{{ user_user.home }}`. # Rules @@ -588,8 +591,8 @@ package managers is preferable over `pip` and `npm` when possible, unless the project is actually Python or Node.js. - The user manages the SDKs directory. Do not update or modify it. - Instead, ask if anything needs updated, modified, or added. + The user manages the `{{ user_user.home }}/SDKs` directory. Do not + modify it. Instead, ask if anything needs updated or added. Never manually edit, modify, delete, alter, replace, etc any files under system folders such as `/usr`. Anything under `/` is @@ -602,9 +605,6 @@ them that you've encountered blockers and then cease the process until you've received feedback. - `SDKs` is mounted as read-only. - Please let me know if any changes need made to these directories. - # Preferences You have free reign over your home directory. Feel free to @@ -620,7 +620,7 @@ These are the versions of plugins and languages we need to use. If you know of an important upgrade from them, please let me know. - ## Android + ## Android / Flutter - Gradle: 9.8.0 - AGP: 9.4.1 @@ -672,11 +672,11 @@ --name open-terminal \ --network=host \ -v {{ user_user.home }}/AI-Sandbox:/home/user \ - -v {{ user_user.home }}/Code:/home/user/Code \ - -v {{ user_user.home }}/SDKs:/home/user/SDKs \ + -v {{ user_user.home }}/Code:{{ user_user.home }}/Code \ + -v {{ user_user.home }}/SDKs:{{ user_user.home }}/SDKs \ -v {{ jdk_jvm }}:{{ jdk_jvm }}:ro \ - -v {{ user_user.home }}/.gradle:/home/user/.gradle \ - -v {{ user_user.home }}/.pub_cache:/home/user/.pub_cache \ + -v {{ user_user.home }}/.gradle:{{ user_user.home }}/.gradle \ + -v {{ user_user.home }}/.pub_cache:{{ user_user.home }}/.pub_cache \ -e OPEN_TERMINAL_FILE_BROWSER_ROOT="/home/user" \ -e OPEN_TERMINAL_API_KEY="{{ open_terminal_key }}" \ -e OPEN_TERMINAL_PACKAGES="$packages" \