chore(linux): install packages on apply

This commit is contained in:
Badstagram 2026-01-14 15:13:02 +00:00
parent 5d3b030cd4
commit e4da40aac9
3 changed files with 46 additions and 0 deletions

View File

@ -25,6 +25,30 @@ packages:
- "fnm"
- "gdu"
- "hyfetch"
arch:
pacman:
- "alacritty"
- "bat"
- "bitwarden"
- "base-devel"
- "eza"
- "firefox"
- "git"
- "httpie"
- "hyfetch"
- "lazygit"
- "neovim"
- "opendoas"
- "tailscale"
- "vi"
- "vim"
aur:
- "beekeeper-studio"
- "discord-canary"
- "gitea-tea-git"
- "localsend-bin"
- "spotify"
- "visual-studio-code-bin"
vscode:
- "aaron-bond.better-comments"
- "bbenoist.nix"

View File

@ -0,0 +1,22 @@
{{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.idLike "arch")) -}}
#!/bin/bash
_install_pacman_packages() {
pacman -S --needed {{ .packages.arch.pacman | join " " }}
}
_install_yay() {
TMPDIR=$(mktemp -d)
git clone https://aur.archlinux.org/yay.git $TMPDIR
cd $TMPDIR/yay
makepkg -si
yay -Y --gendb
}
_install_pacman_packages() {
pacman -S --needed {{ .packages.arch.aur | join " " }}
}
{{ end -}}