chore(linux): install packages on apply
This commit is contained in:
parent
1dc567c9b0
commit
77a402600e
@ -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"
|
||||
|
||||
22
.chezmoiscripts/run_onchange_arch-install-packages.sh.tmpl
Normal file
22
.chezmoiscripts/run_onchange_arch-install-packages.sh.tmpl
Normal 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 -}}
|
||||
Loading…
Reference in New Issue
Block a user