Compare commits

...

3 Commits

4 changed files with 84 additions and 0 deletions

View File

@ -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"

View 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 -}}

View 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 -}}