mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Ship our own pacman.conf
This commit is contained in:
32
default/pacman/pacman.conf
Normal file
32
default/pacman/pacman.conf
Normal 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
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user