Add Federated Calendar

This commit is contained in:
2026-10-29 09:41:43 -06:00
parent a3a980579c
commit 0c0ddf56c6
5 changed files with 29 additions and 0 deletions
+17
View File
@@ -36,6 +36,23 @@ install_packages() {
fi
}
FEDERATED_REPO_URL="https://gitea.federated.computer/api/packages/Federated_Computer/arch"
FEDERATED_REPO_KEY="6AB7C080D87C74BEE3925A026329376994F18B4E"
# Add Federated Computer's pacman repo, which Gitea serves and signs, and trust
# its key. Does nothing if both are already set up.
ensure_federated_repo() {
if ! sudo pacman-key --list-keys "$FEDERATED_REPO_KEY" &> /dev/null; then
curl -fsSL "$FEDERATED_REPO_URL/repository.key" | sudo pacman-key --add - || return 1
sudo pacman-key --lsign-key "$FEDERATED_REPO_KEY" > /dev/null || return 1
fi
if ! grep -q '^\[federated\]' /etc/pacman.conf; then
printf '\n[federated]\nSigLevel = Required DatabaseRequired\nServer = %s/$repo/$arch\n' \
"$FEDERATED_REPO_URL" | sudo tee -a /etc/pacman.conf > /dev/null || return 1
fi
}
# Function to install pipx applications if not already installed
install_pipx_apps() {
local installed app status=0