Compare commits
3 Commits
master
...
linux/pack
| Author | SHA1 | Date | |
|---|---|---|---|
| b1495b020b | |||
| e6c4a36b13 | |||
| 77a402600e |
@ -25,6 +25,33 @@ packages:
|
||||
- "fnm"
|
||||
- "gdu"
|
||||
- "hyfetch"
|
||||
arch:
|
||||
pacman:
|
||||
- "alacritty"
|
||||
- "bat"
|
||||
- "bitwarden"
|
||||
- "base-devel"
|
||||
- "eza"
|
||||
- "firefox"
|
||||
- "flatpak"
|
||||
- "git"
|
||||
- "httpie"
|
||||
- "hyfetch"
|
||||
- "lazygit"
|
||||
- "neovim"
|
||||
- "opendoas"
|
||||
- "tailscale"
|
||||
- "vi"
|
||||
- "vim"
|
||||
aur:
|
||||
- "beekeeper-studio"
|
||||
- "discord-canary"
|
||||
- "gitea-tea-git"
|
||||
- "localsend-bin"
|
||||
- "spotify"
|
||||
- "visual-studio-code-bin"
|
||||
flatpak:
|
||||
- "org.prismlauncher.PrismLauncher"
|
||||
vscode:
|
||||
- "aaron-bond.better-comments"
|
||||
- "bbenoist.nix"
|
||||
|
||||
34
.chezmoiscripts/run_onchange_arch-install-packages.sh.tmpl
Normal file
34
.chezmoiscripts/run_onchange_arch-install-packages.sh.tmpl
Normal file
@ -0,0 +1,34 @@
|
||||
{{ 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_aur_packages() {
|
||||
yay -S --needed {{ .packages.arch.aur | join " " }}
|
||||
}
|
||||
|
||||
_install_flatpak_packages() {
|
||||
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
|
||||
{{ range .packages.arch.flatpak -}}
|
||||
flatpak install {{ . | quote }}
|
||||
{{ end }}
|
||||
}
|
||||
|
||||
_install_pacman_packages
|
||||
_install_yay
|
||||
_install_aur_packages
|
||||
_install_flatpak_packages
|
||||
|
||||
{{ end -}}
|
||||
23
.chezmoiscripts/run_onchange_arch-install-rice.sh.tmpl
Normal file
23
.chezmoiscripts/run_onchange_arch-install-rice.sh.tmpl
Normal file
@ -0,0 +1,23 @@
|
||||
{{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.idLike "arch")) -}}
|
||||
#!/bin/bash
|
||||
|
||||
_apply_grub_theme() {
|
||||
TMPDIR=$(mktemp -d)
|
||||
|
||||
git clone https://github.com/catppuccin/grub.git $TMPDIR
|
||||
cd $TMPDIR/grub
|
||||
|
||||
sudo cp -r src/catppuccin-macchiato-grub-theme /usr/share/grub/themes/
|
||||
|
||||
sudo sed -i \
|
||||
-e 's|^[[:space:]]*#\?[[:space:]]*GRUB_THEME=.*|GRUB_THEME="/usr/share/grub/themes/catppuccin-macchiato-grub-theme/theme.txt"|' \
|
||||
-e '$a GRUB_THEME="/usr/share/grub/themes/catppuccin-macchiato-grub-theme/theme.txt"' \
|
||||
/etc/default/grub
|
||||
|
||||
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
||||
}
|
||||
|
||||
_apply_grub_theme
|
||||
|
||||
|
||||
{{ end -}}
|
||||
Loading…
Reference in New Issue
Block a user