Add package installation to dotfiles repo

This commit is contained in:
Julien Negrotto 2025-10-23 15:14:49 -05:00
parent 7d9b87491a
commit 5d3318b623
6 changed files with 94 additions and 0 deletions

View File

@ -0,0 +1,40 @@
bc
bitwarden
chezmoi
colordiff
ctags
fastfetch
fd
feh
firefox
gammastep
geoclue
git
gvfs
gvfs-dnssd
gvfs-nfs
gvfs-smb
gvfs-wsdd
just
kitty
less
ly
man-db
man-pages
neovim
nvm
obsidian
ripgrep
ripgrep-all
swaync
thunar
thunar-archive-plugin
thunar-media-tags-plugin
thunar-shares-plugin
thunar-vcs-plugin
thunar-volman
trash-cli
ttf-iosevka-nerd
watchexec
wev
zsh

View File

@ -0,0 +1,5 @@
paru
paru-debug
rbenv-git
ruby-build-git
zen-browser-bin

View File

@ -0,0 +1,5 @@
regen-pkglists:
touch arch_ignore.txt
pacman -Qqen | sort | comm -23 - arch_ignore.txt > arch_packages.txt
touch aur_ignore.txt
pacman -Qqem | sort | comm -23 - aur_ignore.txt > aur_packages.txt

View File

@ -0,0 +1,8 @@
#!/bin/bash
# vim: ft=bash
# arch_packages.txt hash: {{ include "private_dot_local/private_share/packages/arch_packages.txt" | sha256sum }}
set -euo pipefail
echo "Installing Arch packages..."
sudo pacman -S --needed - < private_dot_local/private_share/packages/arch_packages.txt

View File

@ -0,0 +1,17 @@
#!/bin/bash
# vim: ft=bash
# aur_packages.txt hash: {{ include "private_dot_local/private_share/packages/aur_packages.txt" | sha256sum }}
set -euo pipefail
if ! command -v paru; then
echo "Installing paru..."
pushd "$(mktemp -d)"
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si
popd
fi
echo "Installing AUR packages..."
paru -S --needed - < private_dot_local/private_share/packages/aur_packages.txt

View File

@ -0,0 +1,19 @@
#!/bin/bash
# arch_packages.txt hash: {{ include "private_dot_local/private_share/packages/arch_packages.txt" | sha256sum }}
# aur_packages.txt hash: {{ include "private_dot_local/private_share/packages/aur_packages.txt" | sha256sum }}
set -euo pipefail
echo "Installing Arch packages..."
sudo pacman -S --needed - < packages/arch.txt
echo "Installing paru..."
pushd "$(mktemp -d)"
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si
popd
echo "Installing AUR packages..."
paru -S --needed - < packages/aur.txt