diff options
| -rwxr-xr-x | archsetup | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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" |
