flocon/run_onchange_10_install_packages.sh.tmpl

16 lines
740 B
Bash

#!/bin/bash
{{ if eq .flavor "desktop" }}
{{ if eq .chezmoi.osRelease.id "fedora" }}
# add codium
sudo rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg
printf "[gitlab.com_paulcarroty_vscodium_repo]\nname=download.vscodium.com\nbaseurl=https://download.vscodium.com/rpms/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg\nmetadata_expire=1h" | sudo tee -a /etc/yum.repos.d/vscodium.repo
sudo dnf copr enable atim/starship -y
sudo dnf install -y {{ .packages.linux.fedora | join " " -}}
{{ end }}
{{ else }}
{{ if eq.chezmoi.osRelease.id "arch" }}
sudo pacman -Syu {{ .packages.linux.arch | join " " -}}
{{ end }}
{{ end }}