diff --git a/.chezmoidata/packages.yaml b/.chezmoidata/packages.yaml index 33ed6f5..3e7cd26 100644 --- a/.chezmoidata/packages.yaml +++ b/.chezmoidata/packages.yaml @@ -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" diff --git a/.chezmoiscripts/run_onchange_arch-install-packages.sh.tmpl b/.chezmoiscripts/run_onchange_arch-install-packages.sh.tmpl index 235ba40..9bc1bb3 100644 --- a/.chezmoiscripts/run_onchange_arch-install-packages.sh.tmpl +++ b/.chezmoiscripts/run_onchange_arch-install-packages.sh.tmpl @@ -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 -}} \ No newline at end of file