feat(apps): gate rustdesk install behind remote_access prompt

This commit is contained in:
2026-08-03 17:09:33 +02:00
parent 797d2d1ba0
commit f446f19181
4 changed files with 115 additions and 96 deletions
+12 -3
View File
@@ -4,8 +4,11 @@
set -euo pipefail
warn() { echo ">>> [apps] WARNING: $*" >&2; }
SYS="{{ .system | default "desktop" }}"
GAMING="{{ .gaming | default false }}"
REMOTE_ACCESS="{{ .remote_access | default false }}"
DISTRO_ID="{{ .chezmoi.osRelease.id | default "" }}"
if [ "$SYS" = "server" ]; then
@@ -25,9 +28,15 @@ case "$DISTRO_ID" in
feishin
# AUR packages
echo ">>> [apps] installing AUR packages"
yay -Sy --noconfirm --needed \
appimagelauncher rustdesk vesktop-git
AUR_PKGS=(appimagelauncher vesktop-git)
if [ "$REMOTE_ACCESS" = "true" ]; then
AUR_PKGS+=(rustdesk)
echo ">>> [apps] installing AUR packages (incl. remote access tools): ${AUR_PKGS[*]}"
else
echo ">>> [apps] installing AUR packages (remote access skipped per user choice): ${AUR_PKGS[*]}"
fi
yay -Sy --noconfirm --needed "${AUR_PKGS[@]}" \
|| warn "yay AUR install failed (see output above)"
# Gaming packages
if [ "$GAMING" = "true" ]; then