2024-02-07 11:52:56 +00:00
#!/bin/sh
2024-02-07 14:34:30 +00:00
{{ if eq .flavor "desktop" }}
2024-06-07 08:21:12 +00:00
{{ if eq .chezmoi.osRelease.id "fedora" }}
2024-02-07 11:52:56 +00:00
2024-06-03 15:32:55 +00:00
# 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-02-07 12:54:36 +00:00
2024-06-07 08:21:12 +00:00
# add starship copr
2024-06-07 16:10:11 +00:00
sudo dnf copr enable atim/starship -y
2024-06-07 08:21:12 +00:00
2024-02-07 11:52:56 +00:00
# install packages
2024-02-07 12:55:57 +00:00
sudo dnf check-update
2024-02-07 16:41:40 +00:00
sudo dnf install $(cat {{ .chezmoi.sourceDir -}}/fedora_packages) -y
2024-02-07 11:52:56 +00:00
{{ end }}
2024-02-07 14:34:30 +00:00
{{ end }}
2024-02-07 14:45:45 +00:00
{{ 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 }}