kde/setup.sh: pasos no críticos no abortan la instalación completa
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
a8b4e3f51d
commit
f86e424491
+27
-16
@@ -85,20 +85,21 @@ install_aur "${AUR_COMMON[@]}" \
|
||||
plasma6-themes-layan-git tela-icon-theme layan-cursor-theme-git \
|
||||
plasma6-applets-appgrid plasma6-wallpapers-smart-video-wallpaper-reborn pamac-tray-plasma-git \
|
||||
yin-yang kwin-decoration-sierra-breeze-enhanced-git
|
||||
install_helpwire
|
||||
install_claude_code
|
||||
run_optional "install_helpwire" install_helpwire
|
||||
run_optional "install_claude_code" install_claude_code
|
||||
|
||||
echo ">> Instalando Flatpaks comunes..."
|
||||
install_flatpaks "${FLATPAK_COMMON[@]}"
|
||||
run_optional "install_flatpaks" install_flatpaks "${FLATPAK_COMMON[@]}"
|
||||
|
||||
echo ">> Servicios..."
|
||||
systemctl enable sddm
|
||||
systemctl enable NetworkManager
|
||||
systemctl enable bluetooth
|
||||
systemctl enable "syncthing@$INSTALL_USER.service"
|
||||
systemctl enable tailscaled
|
||||
systemctl enable power-profiles-daemon
|
||||
systemctl enable cpupower
|
||||
enable_services() {
|
||||
systemctl enable sddm
|
||||
systemctl enable NetworkManager
|
||||
systemctl enable bluetooth
|
||||
systemctl enable "syncthing@$INSTALL_USER.service"
|
||||
systemctl enable tailscaled
|
||||
systemctl enable power-profiles-daemon
|
||||
systemctl enable cpupower
|
||||
}
|
||||
run_optional "enable_services" enable_services
|
||||
|
||||
# Tema: Layan (global theme) + iconos Tela + cursores Bibata-Modern-Classic
|
||||
# (bibata-cursor-theme-bin en AUR_COMMON), vía AUR (plasma6-themes-layan-git/
|
||||
@@ -114,11 +115,14 @@ systemctl enable cpupower
|
||||
echo ">> chezmoi init --apply (repo arch-configs)..."
|
||||
REMOTE="$GITEA/arch-configs.git"
|
||||
[[ -n "${GITEA_TOKEN:-}" ]] && REMOTE="https://$INSTALL_USER:$GITEA_TOKEN@gitea.josevi.ovh/josevi/arch-configs.git"
|
||||
as_user "export GIT_NAME='$GIT_NAME' GIT_EMAIL='$GIT_EMAIL'; \
|
||||
chezmoi init --apply '$REMOTE'"
|
||||
chezmoi_init_apply() {
|
||||
as_user "export GIT_NAME='$GIT_NAME' GIT_EMAIL='$GIT_EMAIL'; \
|
||||
chezmoi init --apply '$REMOTE'"
|
||||
}
|
||||
run_optional "chezmoi init --apply" chezmoi_init_apply
|
||||
|
||||
# --- pkgsync: sincronización de paquetes (repo arch-setup) -----------------
|
||||
install_pkgsync
|
||||
run_optional "install_pkgsync" install_pkgsync
|
||||
|
||||
# Snapper AL FINAL, no tras install_bootloader: snap-pac crea un snapshot
|
||||
# pre+post por cada transacción de pacman/paru en cuanto existe el config de
|
||||
@@ -132,7 +136,14 @@ install_pkgsync
|
||||
# un 'pacman -Syu' real ya con el sistema arrancado, que es para lo que existe
|
||||
# el rollback.
|
||||
echo ">> Configurando rollback de actualizaciones (snapper)..."
|
||||
configure_btrfs_rollback
|
||||
run_optional "configure_btrfs_rollback" configure_btrfs_rollback
|
||||
|
||||
rm -f /etc/sudoers.d/99-setup-nopasswd
|
||||
|
||||
if ((${#FAILED_STEPS[@]})); then
|
||||
echo
|
||||
echo "⚠️ Instalación completada con avisos. Pasos que fallaron y necesitan revisión manual:"
|
||||
printf ' - %s\n' "${FAILED_STEPS[@]}"
|
||||
fi
|
||||
|
||||
echo ">> Configuración de KDE completada."
|
||||
|
||||
Reference in New Issue
Block a user