Move OPR behind Arch default repos (#1229)

* Move OPR behind Arch default repos

* No longer first
This commit is contained in:
David Heinemeier Hansson
2025-08-28 08:47:42 +02:00
committed by GitHub
parent 6e3d023fee
commit 30ad634349
2 changed files with 8 additions and 2 deletions

View File

@@ -8,9 +8,9 @@ if ! grep -q "ILoveCandy" /etc/pacman.conf; then
sudo sed -i '/^\[options\]/a Color\nILoveCandy\nVerbosePkgLists' /etc/pacman.conf
fi
# Add the Omarchy repository as first choice
# Add the Omarchy repository
if ! grep -q "omarchy" /etc/pacman.conf; then
sudo sed -i '/^\[core\]/i [omarchy]\nSigLevel = Optional TrustAll\nServer = https:\/\/pkgs.omarchy.org\/$arch\/\n' /etc/pacman.conf
echo -e '\n[omarchy]\nSigLevel = Optional TrustAll\nServer = https:\/\/pkgs.omarchy.org\/$arch\/\n' | sudo tee -a /etc/pacman.conf >/dev/null
fi
# Set mirrors to global ones only

6
migrations/1756360551.sh Normal file
View File

@@ -0,0 +1,6 @@
echo "Move Omarchy Package Repository after Arch core/extra/multilib for extra security on resolution"
sudo cp /etc/pacman.conf /etc/pacman.conf.bak
sudo sed -i '/\[omarchy\]/,+2 d' /etc/pacman.conf
sudo sed -i '/\[chaotic-aur\]/i\[omarchy]\nSigLevel = Optional TrustAll\nServer = https://pkgs.omarchy.org/$arch/\n' /etc/pacman.conf ||
sudo bash -c 'echo -e "\n[omarchy]\nSigLevel = Optional TrustAll\nServer = https://pkgs.omarchy.org/$arch/" >> /etc/pacman.conf'