flocon/run_onchange_10_install_packages.sh.tmpl

33 lines
1.2 KiB
Cheetah
Raw Normal View History

#!/bin/bash
{{ if eq .flavor "desktop" }}
2024-06-07 08:21:12 +00:00
{{ if eq .chezmoi.osRelease.id "fedora" }}
2024-07-25 21:04:47 +00:00
# add terra repository
sudo dnf install --repofrompath 'terra,https://repos.fyralabs.com/terra$releasever' --setopt='terra.gpgkey=https://repos.fyralabs.com/terra$releasever/key.asc' terra-release -y
# 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
2024-07-25 21:04:47 +00:00
# add asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0
2024-07-25 21:04:47 +00:00
# enable coprs
{{ range .packages.linux.copr -}}
2024-07-25 21:04:47 +00:00
sudo dnf copr -y enable {{ . | quote }}
{{ end }}
# install packages
sudo dnf install -y {{ .packages.linux.fedora | join " "}}
# install asdf plugins
{{ range .packages.linux.asdf -}}
2024-07-08 08:36:02 +00:00
asdf install {{ . }} latest
asdf global {{ . }} latest
{{ end }}
{{ end }}
2024-06-17 07:28:07 +00:00
{{ else }}
{{ if eq.chezmoi.osRelease.id "arch" }}
sudo pacman -Syu {{ .packages.linux.arch | join " " -}}
{{ end }}
2024-06-17 07:28:07 +00:00
{{ end }}