Switch to pacman to make it clear when we are not depending on AUR

This commit is contained in:
David Heinemeier Hansson
2025-08-24 17:35:24 +02:00
parent 69afedf380
commit 9d739faf2b
36 changed files with 42 additions and 42 deletions

View File

@@ -1,14 +1,14 @@
#!/bin/bash
if [ -z "$OMARCHY_BARE" ]; then
yay -S --noconfirm --needed \
sudo pacman -S --noconfirm --needed \
gnome-calculator gnome-keyring signal-desktop \
obsidian libreoffice obs-studio kdenlive \
xournalpp localsend
# Packages known to be flaky or having key signing issues are run one-by-one
for pkg in spotify pinta; do
yay -S --noconfirm --needed "$pkg" ||
sudo pacman -S --noconfirm --needed "$pkg" ||
echo -e "\e[31mFailed to install $pkg. Continuing without!\e[0m"
done
fi

View File

@@ -3,7 +3,7 @@
# Install iwd explicitly if it wasn't included in archinstall
# This can happen if archinstall used ethernet
if ! command -v iwctl &>/dev/null; then
yay -S --noconfirm --needed iwd
sudo pacman -S --noconfirm --needed iwd
chrootable_systemctl_enable iwd.service
fi

View File

@@ -53,7 +53,7 @@ if [ -n "$(lspci | grep -i 'nvidia')" ]; then
"qt6-wayland"
)
yay -S --needed --noconfirm "${PACKAGES_TO_INSTALL[@]}"
sudo pacman -S --needed --noconfirm "${PACKAGES_TO_INSTALL[@]}"
# Configure modprobe for early KMS
echo "options nvidia_drm modeset=1" | sudo tee /etc/modprobe.d/nvidia.conf >/dev/null

View File

@@ -2,7 +2,7 @@
# Setting the performance profile can make a big difference. By default, most systems seem to start in balanced mode,
# even if they're not running off a battery. So let's make sure that's changed to performance.
yay -S --noconfirm python-gobject power-profiles-daemon
sudo pacman -S --noconfirm python-gobject power-profiles-daemon
# FIXME: Can't set powerprofilesctl during CHROOT, must do it afterwards
if [ -z "${OMARCHY_CHROOT_INSTALL:-}" ]; then

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# Install bluetooth controls
yay -S --noconfirm --needed blueberry
sudo pacman -S --noconfirm --needed blueberry
# Turn on bluetooth by default
chrootable_systemctl_enable bluetooth.service

View File

@@ -1,6 +1,6 @@
#!/bin/bash
yay -S --noconfirm --needed \
sudo pacman -S --noconfirm --needed \
hyprland hyprshot hyprpicker hyprlock hypridle hyprsunset polkit-gnome hyprland-qtutils \
walker-bin libqalculate waybar mako swaybg swayosd \
xdg-desktop-portal-hyprland xdg-desktop-portal-gtk

View File

@@ -1,18 +1,18 @@
#!/bin/bash
# Use dark mode for QT apps too (like kdenlive)
if ! yay -Q kvantum-qt5 &>/dev/null; then
yay -S --noconfirm kvantum-qt5
if ! pacman -Q kvantum-qt5 &>/dev/null; then
sudo pacman -S --noconfirm kvantum-qt5
fi
# Prefer dark mode everything
if ! yay -Q gnome-themes-extra &>/dev/null; then
yay -S --noconfirm gnome-themes-extra # Adds Adwaita-dark theme
if ! pacman -Q gnome-themes-extra &>/dev/null; then
sudo pacman -S --noconfirm gnome-themes-extra # Adds Adwaita-dark theme
fi
# Allow icons to match the theme
if ! yay -! yaru-icon-theme &>/dev/null; then
yay -S --noconfirm yaru-icon-theme
sudo pacman -S --noconfirm yaru-icon-theme
fi
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"

View File

@@ -1,6 +1,6 @@
#!/bin/bash
yay -S --noconfirm --needed \
sudo pacman -S --noconfirm --needed \
cargo clang llvm mise \
imagemagick \
mariadb-libs postgresql-libs \

View File

@@ -1,6 +1,6 @@
#!/bin/bash
yay -S --noconfirm --needed docker docker-compose docker-buildx
sudo pacman -S --noconfirm --needed docker docker-compose docker-buildx
# Configure Docker daemon:
# - limit log size to avoid running out of disk

View File

@@ -1,7 +1,7 @@
#!/bin/bash
if ! command -v nvim &>/dev/null || [ ! -d "$HOME/.config/nvim" ]; then
yay -S --noconfirm --needed nvim luarocks tree-sitter-cli
sudo pacman -S --noconfirm --needed nvim luarocks tree-sitter-cli
# Install LazyVim
rm -rf ~/.config/nvim

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# Install Ruby using gcc-14 for compatibility
yay -S --noconfirm --needed gcc14
sudo pacman -S --noconfirm --needed gcc14
mise settings set ruby.ruby_build_opts "CC=gcc-14 CXX=g++-14"
# Trust .ruby-version

View File

@@ -1,6 +1,6 @@
#!/bin/bash
yay -S --noconfirm --needed \
sudo pacman -S --noconfirm --needed \
unzip inetutils impala \
fd eza fzf ripgrep zoxide bat dust jq xmlstarlet \
wl-clipboard fastfetch btop \

View File

@@ -2,7 +2,7 @@
# Hyprland launched via UWSM and login directly as user, rely on disk encryption + hyprlock for security
if ! command -v uwsm &>/dev/null || ! command -v plymouth &>/dev/null; then
yay -S --noconfirm --needed plymouth uwsm
sudo pacman -S --noconfirm --needed plymouth uwsm
fi
# ==============================================================================