From 4dd14d6038cb51a3854051710dc1fc48a93dfa80 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:23:38 +0100 Subject: feat(bootstrap): add Arch post-install steps After 'just init' the script now: - enables recommended systemd units that base.txt installs but nothing was activating: fstrim.timer, systemd-timesyncd, systemd-resolved, reflector.timer, paccache.timer, pkgstats.timer, acpid, cpupower, iwd - enables tlp.service only when a battery is present (/sys/class/power_supply/BAT*) - refreshes the pacman mirrorlist via reflector using the already- deployed /etc/xdg/reflector/reflector.conf - runs xdg-user-dirs-update to create ~/Documents, ~/Downloads, etc. Each step is soft-fail: warns and continues on failure rather than aborting the whole bootstrap. pacman.conf tuning is intentionally left out (should be managed via chezmoi's etc/ pipeline). User creation is also out of scope; the script continues to require the wheel user to exist beforehand, per the Arch installation guide. --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index af8264c..8ae2b57 100644 --- a/README.md +++ b/README.md @@ -4,18 +4,25 @@ My Arch Linux configuration, managed with [chezmoi](https://www.chezmoi.io/). ## Bootstrap on a fresh Arch install -On a minimal Arch system (only `base` installed), as the regular wheel -user: +As the regular wheel user (not root), on a minimal Arch system (only +`base` installed): ```sh curl -fsSL https://raw.githubusercontent.com/sommerfelddev/dotfiles/master/bootstrap.sh | sh ``` -This installs prerequisites, enables `%wheel` in sudoers, builds +This installs pacman prerequisites, enables `%wheel` in sudoers, builds `paru-bin` from the AUR, clones this repo to `~/dotfiles`, runs -`just init`, and — on EFI systems missing an Arch boot entry — +`just init`, enables recommended systemd units (fstrim, timesyncd, +resolved, reflector, paccache, pkgstats, acpid, cpupower, iwd, plus tlp +on laptops), refreshes the pacman mirrorlist, creates XDG user +directories, and — on EFI systems missing an Arch boot entry — launches `create-efi`. +The script assumes the Arch installation guide has already been +followed up to the point of creating a wheel-group user and booting +into their session. + ## Setup on an existing system ```sh -- cgit v1.2.3-70-g09d2