Part of repository setup

This commit is contained in:
David Heinemeier Hansson 2025-08-25 09:30:36 +02:00
parent 0a0843c7ec
commit b9758a9c8c
3 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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