flocon/run_once_10_install_programs.sh.tmpl

23 lines
1.1 KiB
Cheetah
Raw Normal View History

#!/bin/sh
{{ if eq .flavor "desktop" }}
{{- if eq .chezmoi.osRelease.id "fedora" }}
# add 1password repository
sudo rpm --import https://downloads.1password.com/linux/keys/1password.asc
sudo sh -c 'echo -e "[1password]\nname=1Password Stable Channel\nbaseurl=https://downloads.1password.com/linux/rpm/stable/\$basearch\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=\"https://downloads.1password.com/linux/keys/1password.asc\"" > /etc/yum.repos.d/1password.repo'
# add vscode repository
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
# 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
{{ end }}
{{ 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 }}