Add Federated Calendar
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user