From e688d70ed400d8ea1e293493eddbf5e237854823 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 11 Jun 2026 11:21:22 -0500 Subject: feat(install): stow the per-host dotfiles tier when one exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mirrors the dotfiles Makefile semantics: a package named after the machine (/etc/hostname, uname -n fallback) is stowed after common + DE when the directory exists, skipped with a message otherwise. Hosts without a tier — including the test VM — see no behavior change. --- archsetup | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/archsetup b/archsetup index d0a2e3d..402fd9e 100755 --- a/archsetup +++ b/archsetup @@ -1030,6 +1030,18 @@ user_customizations() { action="linking $desktop_env dotfiles" && display "task" "$action" (cd "$dotfiles_dir" && stow --target="/home/$username" --no-folding --adopt "$desktop_env" \ >> "$logfile" 2>&1) || error_warn "$action" "$?" + + # Per-host override tier: a stow package named after this machine + # (ratio/, velox/) — same semantics as the dotfiles Makefile. A + # host without a tier is skipped with a message, not an error. + host_tier="$(cat /etc/hostname 2>/dev/null || uname -n)" + if [ -n "$host_tier" ] && [ -d "$dotfiles_dir/$host_tier" ]; then + action="linking $host_tier host-tier dotfiles" && display "task" "$action" + (cd "$dotfiles_dir" && stow --target="/home/$username" --no-folding --adopt "$host_tier" \ + >> "$logfile" 2>&1) || error_warn "$action" "$?" + else + display "task" "no host tier for '$host_tier' in dotfiles — skipping" + fi ;; none) action="linking minimal dotfiles" && display "task" "$action" -- cgit v1.2.3