flocon/run_once_10_install_programs.sh.tmpl
Anthony Rodriguez 3f0778ee7f Update .config/fish/fish_variables
Update fedora_packages
Update 10_install_programs.sh
Remove 20_import_gpg_from_1password.sh
2024-06-03 17:32:55 +02:00

18 lines
815 B
Bash

#!/bin/sh
{{ 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
# install packages
sudo dnf check-update
sudo dnf install $(cat {{ .chezmoi.sourceDir -}}/fedora_packages) -y
{{ end }}
{{ end }}
{{ if (and (eq .flavor "wm") (eq .chezmoi.osRelease.id "arch")) }}
# TODO add arch packages (1password for GPG, vscode for chezmoi edit)
sudo pacman -Sy - < arch_packages
{{ end }}