Skip to content

Instantly share code, notes, and snippets.

View Keithsel's full-sized avatar

Anh Nhữ Quang Keithsel

View GitHub Profile
@Keithsel
Keithsel / cleanup.sh
Last active February 3, 2026 06:58
Clean up pacman and paru cache (yay should work the same, change the name of the aur wrapper)
#!/bin/bash
set -euo pipefail
# Better safe than sorry
rm() {
command rm -vI --preserve-root "$@"
}
export -f rm
pcachedir="/var/cache/pacman/pkg"
@Keithsel
Keithsel / declarative_arch_manifesto.md
Last active February 13, 2026 15:27
Declarative Arch Manifesto

Declarative Arch Manifesto

Declare intent, converge state, move on.

The problem

Arch is imperative. You run commands, packages accumulate, configs scatter. Six months later you can't explain half your system. Reinstalling means archaeology. Syncing machines means drift.

We want repeatability without NixOS complexity. Not hermetic builds, not byte-identical closures. Just a declaration that describes the system, and a tool that makes it so.

#----------------
#-- Variables: --
#----------------
# Font
font pango:Fira Sans 12
# Logo key as mod
set $mod Mod4