add asdf plugins and cleanup packages install script

This commit is contained in:
Anthony Rodriguez 2024-07-06 17:35:43 +02:00
parent 93f407db15
commit 42c6685512
2 changed files with 22 additions and 4 deletions

View file

@ -10,12 +10,15 @@ packages:
- starship
- zoxide
- https://proton.me/download/PassDesktop/linux/x64/ProtonPass.rpm
copr:
- atim/starship
flatpaks:
- com.getpostman.Postman
- com.spotify.Client
- dev.vencord.Vesktop
copr:
- atim/starship
asdf:
- nodejs
- python
arch:
- afetch
- alsa-firmware

View file

@ -1,12 +1,27 @@
#!/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 " " -}}
# add asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0
# enable coprs
{{ range .packages.linux.copr -}}
sudo copr enable {{ . | quote }} -y
{{ end }}
# install packages
sudo dnf install -y {{ .packages.linux.fedora | join " "}}
# install asdf plugins
{{ range .packages.linux.asdf -}}
asdf install {{ . | quote }} latest
asdf global {{ . | quote }} latest
{{ end }}
{{ end }}
{{ else }}
{{ if eq.chezmoi.osRelease.id "arch" }}