aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc/pacman.d/hooks/pacman-cache-cleanup.hook
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-06-15 00:55:43 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-06-15 00:55:43 +0100
commitbb607b3cdb027a2d02cf2111b8ee12dab172efad (patch)
treea52c1d792ed17640bbbe1e8581eded4f1e9004b7 /etc/pacman.d/hooks/pacman-cache-cleanup.hook
parent14f5a45a67b2d719e8912c335be8f521e39291fd (diff)
downloaddotfiles-bb607b3cdb027a2d02cf2111b8ee12dab172efad.tar.gz
dotfiles-bb607b3cdb027a2d02cf2111b8ee12dab172efad.tar.bz2
dotfiles-bb607b3cdb027a2d02cf2111b8ee12dab172efad.zip
Reduce AUR package surface
Move pass-secret-service, snx-rs, and Sparrow under Nix/Home Manager. Track the snx-rs system unit, pass-secret-service user unit, and pacman cache cleanup hook in the repo. Drop the mkinitcpio firmware metapackage, overdue, pacman-cleanup-hook, and the standalone btc package group.
Diffstat (limited to 'etc/pacman.d/hooks/pacman-cache-cleanup.hook')
-rw-r--r--etc/pacman.d/hooks/pacman-cache-cleanup.hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/pacman.d/hooks/pacman-cache-cleanup.hook b/etc/pacman.d/hooks/pacman-cache-cleanup.hook
new file mode 100644
index 0000000..a22ff15
--- /dev/null
+++ b/etc/pacman.d/hooks/pacman-cache-cleanup.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = Package
+Operation = Remove
+Operation = Install
+Operation = Upgrade
+Target = *
+
+[Action]
+Description = Removing obsolete cached package files (keeping the latest two)...
+When = PostTransaction
+Exec = /usr/bin/paccache -rvk2