diff --git a/install.sh b/install.sh index 666a841a..abb1c8c9 100755 --- a/install.sh +++ b/install.sh @@ -10,7 +10,6 @@ OMARCHY_INSTALL=~/.local/share/omarchy/install source $OMARCHY_INSTALL/preflight/show-env.sh source $OMARCHY_INSTALL/preflight/trap-errors.sh source $OMARCHY_INSTALL/preflight/chroot.sh -source $OMARCHY_INSTALL/preflight/mirrorlist.sh source $OMARCHY_INSTALL/preflight/guard.sh source $OMARCHY_INSTALL/preflight/repositories.sh source $OMARCHY_INSTALL/preflight/migrations.sh diff --git a/install/preflight/mirrorlist.sh b/install/preflight/mirrorlist.sh deleted file mode 100755 index 3c5910f4..00000000 --- a/install/preflight/mirrorlist.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -# Set mirror to single geo setup -echo 'Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch' | - sudo tee /etc/pacman.d/mirrorlist >/dev/null diff --git a/install/preflight/repositories.sh b/install/preflight/repositories.sh index a070f35b..e4f2c1d3 100755 --- a/install/preflight/repositories.sh +++ b/install/preflight/repositories.sh @@ -13,6 +13,10 @@ 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 fi +# Set mirrors to global ones only +echo "Server = https://geo.mirror.pkgbuild.com/\$repo/os/\$arch\nServer = https://mirror.rackspace.com/archlinux/\$repo/os/\$arch" | + sudo tee /etc/pacman.d/mirrorlist >/dev/null + # Install yay from Omarchy repository sudo pacman -Sy --needed --noconfirm yay