chore(linux): install flatpaks

This commit is contained in:
Badstagram 2026-01-14 20:03:05 +00:00
parent 77a402600e
commit e6c4a36b13
2 changed files with 17 additions and 2 deletions

View File

@ -33,6 +33,7 @@ packages:
- "base-devel"
- "eza"
- "firefox"
- "flatpak"
- "git"
- "httpie"
- "hyfetch"
@ -49,6 +50,8 @@ packages:
- "localsend-bin"
- "spotify"
- "visual-studio-code-bin"
flatpak:
- "org.prismlauncher.PrismLauncher"
vscode:
- "aaron-bond.better-comments"
- "bbenoist.nix"

View File

@ -14,9 +14,21 @@ _install_yay() {
yay -Y --gendb
}
_install_pacman_packages() {
pacman -S --needed {{ .packages.arch.aur | join " " }}
_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 -}}