From 30ad634349cd0011aa96bb0269e9e66ccf69865a Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 28 Aug 2025 08:47:42 +0200 Subject: [PATCH] Move OPR behind Arch default repos (#1229) * Move OPR behind Arch default repos * No longer first --- install/preflight/repositories.sh | 4 ++-- migrations/1756360551.sh | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 migrations/1756360551.sh diff --git a/install/preflight/repositories.sh b/install/preflight/repositories.sh index c368955a..5256ba80 100755 --- a/install/preflight/repositories.sh +++ b/install/preflight/repositories.sh @@ -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 diff --git a/migrations/1756360551.sh b/migrations/1756360551.sh new file mode 100644 index 00000000..a87dc54f --- /dev/null +++ b/migrations/1756360551.sh @@ -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'