Ship our own pacman.conf

This commit is contained in:
David Heinemeier Hansson
2025-08-31 15:07:36 +02:00
parent 849628b288
commit a4c4b3570c
2 changed files with 35 additions and 18 deletions

View File

@@ -0,0 +1,32 @@
# See the pacman.conf(5) manpage for option and repository directives
[options]
Color
ILoveCandy
VerbosePkgLists
HoldPkg = pacman glibc
Architecture = auto
CheckSpace
ParallelDownloads = 5
DownloadUser = alpm
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
# REPOSITORIES
# - pacman will search repositories in the order defined here
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
[omarchy]
SigLevel = Optional TrustAll
Server = https://pkgs.omarchy.org/$arch

View File

@@ -3,24 +3,9 @@
# Install build tools # Install build tools
sudo pacman -S --needed --noconfirm base-devel sudo pacman -S --needed --noconfirm base-devel
# Add fun and color and verbosity to the pacman installer # Configure pacman
if ! grep -q "ILoveCandy" /etc/pacman.conf; then sudo cp -f ~/.local/share/omarchy/default/pacman/pacman.conf /etc/pacman.conf
sudo sed -i '/^\[options\]/a Color\nILoveCandy\nVerbosePkgLists' /etc/pacman.conf sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist /etc/pacman.d/mirrorlist
fi
# Add the Omarchy repository
if ! grep -q "omarchy" /etc/pacman.conf; then
sudo tee -a /etc/pacman.conf >/dev/null <<'EOF'
[omarchy]
SigLevel = Optional TrustAll
Server = https://pkgs.omarchy.org/$arch
EOF
fi
# Set mirrors to global ones only
omarchy-refresh-pacman-mirrorlist
# Refresh all repos # Refresh all repos
sudo pacman -Syu --noconfirm sudo pacman -Syu --noconfirm