add script to install programs (fedora only)

This commit is contained in:
Anthony Rodriguez 2024-02-07 12:52:56 +01:00
parent 00f40a6d8a
commit b0efc15fb5
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
4 changed files with 14 additions and 4 deletions

4
fedora_packages Normal file
View file

@ -0,0 +1,4 @@
1password
fira-code-fonts
fish
fzf

View file

@ -0,0 +1,10 @@
#!/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 }}

View file

@ -1,4 +0,0 @@
#!/bin/sh
{{- if eq .chezmoi.osRelease.id "fedora" }}
# TODO: Install programs
{{ end }}