It's my birthday today and with all the security compromises with rogue AI agents, I got paranoid and decided it's time for a full system cleanup.
This is the checklist I wish I had for my ThinkPad X1 Carbon.
The USB
Download the ISO from archlinux.org/download.
Linux
gpg --verify archlinux-*.iso.sig archlinux-*.iso
sha256sum -c archlinux-*.iso.sha256
lsblk
sudo dd if=archlinux-*.iso of=/dev/sdb bs=4M status=progress conv=fsync
macOS
gpg --verify archlinux-*.iso.sig archlinux-*.iso
shasum -a 256 -c archlinux-*.iso.sha256
diskutil list
diskutil unmountDisk /dev/diskN
sudo dd if=archlinux-*.iso of=/dev/rdiskN bs=4m
sync
diskutil eject /dev/diskN
Replace /dev/sdb or /dev/diskN with your USB device.
Live environment
F12 at boot. Turn off Secure Boot; the stock ISO isn't signed for it.
iwctl
station wlan0 scan
station wlan0 get-networks
station wlan0 connect "Your SSID"
exit
ping -c 3 archlinux.org
timedatectl set-ntp true
Fix the clock before installing or signatures will fail. Optionally update the installer:
pacman -Sy archinstall
Install
I'm an install n00b, so I beta-max it and use archinstall.
archinstall
- Disk: wipe, LUKS on root, ext4, EFI at
/boot. - Bootloader: systemd-boot + UKI.
- Profile: KDE Plasma (
plasma-metaby default). - Audio: PipeWire.
- Network: NetworkManager.
- Kernel:
linux. - Swap: on. archinstall sets up 4 GB zram (zstd) and adds
zswap.enabled=0. - User: create one with sudo.
- Extras:
git base-devel.
Read the summary. If it explodes, the log is at /var/log/archinstall/install.log.
First boot
sudo pacman -Syu
nmcli device wifi connect "Your SSID" password "your password"
sudo systemctl enable --now fstrim.timer
timedatectl
nmtui if you want menus. If Wi-Fi fails, check that NetworkManager and iwd aren't both running.
Configure
KDE Plasma
sudo pacman -S plasma-meta
sudo systemctl enable plasmalogin.service
sudo pacman -S dolphin ark gwenview okular
plasma-meta includes powerdevil, plasma-nm, bluedevil, plasma-pa, spectacle, and the Plasma Login Manager. Plasma 6 is Wayland by default. Don't install power-profiles-daemon with TLP.
Audio
sudo pacman -S pipewire pipewire-pulse pipewire-alsa pipewire-jack wireplumber
PipeWire is the daemon; pipewire-pulse keeps PulseAudio clients working. Don't install PulseAudio.
Bluetooth
sudo pacman -S bluez bluez-utils
sudo systemctl enable --now bluetooth.service
Bluedevil comes with plasma-meta. bluez-obex is only for file transfers. Firmware is in linux-firmware.
Network
sudo pacman -S networkmanager
sudo systemctl enable --now NetworkManager
Use nmcli, or nmtui if you want a TUI. Both come with NetworkManager.
Firewall
sudo pacman -S ufw
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw enable
sudo systemctl enable ufw
Power
sudo pacman -S tlp
sudo systemctl enable --now tlp
# /etc/tlp.d/01-thinkpad.conf
START_CHARGE_THRESH_BAT0=75
STOP_CHARGE_THRESH_BAT0=80
PLATFORM_PROFILE_ON_BAT=low-power
TLP's defaults are fine; the charge thresholds are the only thing worth setting. No reboot needed — apply with sudo tlp start, then check with sudo tlp-stat -s.
AUR
sudo pacman -S --needed base-devel git
git clone https://aur.archlinux.org/yay.git
cd yay && makepkg -si
yay -S google-chrome
Docker
sudo pacman -S docker docker-compose
sudo systemctl enable --now docker
sudo usermod -aG docker "$USER"
Log out and back in. The docker group is root with extra steps.
Nix
sh <(curl -L https://nixos.org/nix/install) --daemon
I use the gcloud CLI pretty heavily:
nix profile install nixpkgs#google-cloud-sdk
Dotfiles
I won't walk through installing dotfiles. The bottom line is to stow the targets in the repo.
KDE shortcuts
System Settings → Keyboard → Shortcuts → Add New → Command or Script.
Screenshot region — Alt+Shift+2:
spectacle -r -c -b -n
Drag a region, press Enter, and it copies to the clipboard and exits. In Klipper, uncheck Ignore images or the image disappears when Spectacle quits.
Clipboard history — Ctrl+Shift+C:
Add the Clipboard widget to the panel, then right-click it → Configure Clipboard → Shortcuts → Show Clipboard Items at Mouse Position → Ctrl+Shift+C.
Pick an entry, then press Ctrl+V. Klipper only copies the entry you pick; it doesn't paste it for you.
Kill switch
Ctrl+Print — make the laptop disappear now.
sudo tee /usr/local/bin/killswitch.sh >/dev/null <<'EOF'
#!/bin/sh
echo o > /proc/sysrq-trigger
EOF
sudo chmod 755 /usr/local/bin/killswitch.sh
Allow your user to run that one script without a password:
echo "$USER ALL=(root) NOPASSWD: /usr/local/bin/killswitch.sh" | sudo tee /etc/sudoers.d/killswitch
sudo chmod 440 /etc/sudoers.d/killswitch
Then add the shortcut: System Settings → Keyboard → Shortcuts → Add New → Command or Script, and enter:
sudo /usr/local/bin/killswitch.sh
Bind it to Ctrl+Print. The sudoers rule lets that shortcut run the script as root without a prompt. This is an immediate poweroff, not a clean shutdown. Writing to /proc/sysrq-trigger bypasses the kernel.sysrq mask, so it powers off even if SysRq is restricted.