repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

topgrade: add the termux overlay

46643cc643fc1f64b905ef16bcf5e5325a75568c

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

termux.symlinks already links topgrade/termux.toml into ~/.config/topgrade.d; the file was missing. disables mise and getnf steps, upgrades proot guests and mise tools as custom commands, and lowers concurrency for the phone.

Changed files (1)

topgrade/termux.toml

Added
new file mode 100644
1 +# Termux (Android, aarch64) tuning overlay.
2 +# Linked to ~/.config/topgrade.d/termux.toml; topgrade.d is merged BEFORE
3 +# ~/.config/topgrade.toml and wins on conflicting keys, so values here
4 +# override the shared base config.
5 +#
6 +# Scope: load tuning, proot guests, and steps that cannot work on Android.
8 +[misc]
9 +# Lists merge by prepend (merge_strategies::vec_prepend_opt), so the base
10 +# config's "vim" is already included; do not repeat it.
11 +# mise: topgrade runs `mise self-update`, which aborts the step before
12 +# `mise upgrade`; Termux mise is pkg-managed and upstream ships no
13 +# mise-v*-android-arm64 asset. Replaced by the "mise tools" command below.
14 +# getnf: `getnf -U` installs fonts, then post_install() always calls applynf,
15 +# whose prompt recurses without an EOF guard -> stack overflow -> SIGSEGV on
16 +# non-tty stdin. It also re-downloads every font each run.
17 +disable = ["mise", "getnf"]
19 +# topgrade has no proot-distro support (only distrobox/toolbx/podman/ssh),
20 +# so guest rootfs upgrades run as custom commands (step: custom_commands).
21 +# Guest shell is already root; no sudo.
22 +[commands]
23 +"proot ubuntu" = "proot-distro login ubuntu -- /bin/sh -c 'apt-get update && apt-get -y full-upgrade && apt-get -y autoremove --purge && apt-get clean'"
24 +# Tool upgrades without the impossible self-update; -C ~ avoids picking up a
25 +# project-local mise.toml from topgrade's working directory.
26 +"mise tools" = "mise upgrade --yes --jobs 4 -C ~"
28 +[git]
29 +# `repos` only exists in lnx.toml, which is not linked on Termux, so without
30 +# this the git_repos step silently skips. ~/Source does not exist here.
31 +repos = ["~/Workspace/*"]
32 +pull_predefined = false
33 +fetch_only = true
34 +# Phone storage/CPU: fewer parallel fetches than the desktop overlay (12).
35 +max_concurrency = 4
37 +[mise]
38 +# Keep headroom on an 8-core device under thermal throttling.
39 +jobs = 4