omarchy/migrations/1756103168.sh
David Heinemeier Hansson 6c656766f8 Fix migration too
2025-08-25 13:53:33 +02:00

8 lines
247 B
Bash

echo "Allow pacman -Sy without sudo to easier installs"
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
$USER ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
$USER ALL=(ALL) NOPASSWD: /usr/bin/yay -Sy
EOF
sudo chmod 440 /etc/sudoers.d/repositories