flocon/run_once_1_install_programs.sh.tmpl

10 lines
505 B
Bash

#!/bin/sh
{{- 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'
# install packages
sudo dnf install $(cat fedora_packages)
{{ end }}