- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| PKGBUILDs/proxmox-backup-client-bin | ||
| scripts | ||
| x86_64 | ||
| .gitignore | ||
| homelab-pubkey.asc | ||
| README.md | ||
arch-pkgs
Custom Arch packages — PKGBUILDs (source) + built .pkg.tar.zst (x86_64/) served as a
local pacman repo. Version-controlled so the fleet's custom packages are tracked + recoverable.
All packages and the repo DB are GPG-signed with the Homelab Packages key
(ed25519/BB89804D527355CC, fingerprint 0BC26CDC4E7B079B98E2BA0ABB89804D527355CC; public
key in homelab-pubkey.asc). Anonymous clone works:
git clone https://git.lan/homelab/arch-pkgs.git.
Use as a pacman repo (servers)
Forgejo raw serving was flaky, so each server clones the repo locally and pacman reads it via
file://:
git clone https://git.lan/homelab/arch-pkgs.git /srv/repo/arch-pkgs
One-time — trust the signing key:
pacman-key --add /srv/repo/arch-pkgs/homelab-pubkey.asc
pacman-key --lsign-key 0BC26CDC4E7B079B98E2BA0ABB89804D527355CC
/etc/pacman.conf:
[homelab]
SigLevel = Required TrustedOnly
Server = file:///srv/repo/arch-pkgs/x86_64
Then pacman -Sy && pacman -S <pkg>. pacman -Qm lists installed custom packages;
pacman -Sl homelab lists what's available.
Build + sign a package (desktop)
Prereq: the signing key in the build user's keyring + GPGKEY="BB89804D527355CC" in
~/.makepkg.conf (run scripts/homelab-key import — see below). The key is unprotected, so
makepkg/repo-add sign headless (no pinentry prompt).
git clone https://aur.archlinux.org/<pkg>.git PKGBUILDs/<pkg>
cd PKGBUILDs/<pkg> && makepkg --sign # --sign uses $GPGKEY -> <pkg>.sig
mkdir -p ../../x86_64 && cp *.pkg.tar.zst *.pkg.tar.zst.sig ../../x86_64/
cd ../../x86_64
repo-add homelab.db.tar.gz *.pkg.tar.zst # regenerate db (+ files db)
rm -f homelab.db homelab.files
mv homelab.db.tar.gz homelab.db && mv homelab.files.tar.gz homelab.files
gpg --detach-sign --local-user BB89804D527355CC homelab.db homelab.files # sign the renamed dbs
cd .. && git add -A && git commit -m "add <pkg>" && git push
repo-addrejects the bare.dbextension, so build to.db.tar.gzthen rename (and sign the renamed file). Update flow: rebuild on desktop → push →git pullon each server →pacman -Sy.
scripts/homelab-key — manage the signing key
Source of truth is server1 (the server user's keyring). The key is unprotected (headless
signing) — treat the exported secret file as a live secret and shred it after importing.
# 1. on server1
scripts/homelab-key export # -> ~/homelab-signing-secret.asc (0600)
# 2. on the desktop
scp server1-auto:~/homelab-signing-secret.asc ~/
scripts/homelab-key import # imports key, sets ~/.makepkg.conf GPGKEY, sign test
shred -u ~/homelab-signing-secret.asc
System-wide install: install -m 0755 scripts/homelab-key /usr/local/bin/homelab-key.