From ce14e6fce056dc65b212dd9714171bb897e792f7 Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Sat, 28 Jun 2025 20:30:13 -0400 Subject: [PATCH] Install codium into image --- files/scripts/setupcodiumrepo.sh | 10 ++++++++++ recipes/components/rpm-ostree/applications.yml | 12 ++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 files/scripts/setupcodiumrepo.sh diff --git a/files/scripts/setupcodiumrepo.sh b/files/scripts/setupcodiumrepo.sh new file mode 100644 index 0000000..7457b24 --- /dev/null +++ b/files/scripts/setupcodiumrepo.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# Tell build process to exit if there are any errors. +set -oue pipefail + +# import keys +sudo rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg + +# create file called vscodium.repo and setup file to possess +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\n" | sudo tee -a /etc/yum.repos.d/vscodium.repo \ No newline at end of file diff --git a/recipes/components/rpm-ostree/applications.yml b/recipes/components/rpm-ostree/applications.yml index 1c56a1d..121977e 100644 --- a/recipes/components/rpm-ostree/applications.yml +++ b/recipes/components/rpm-ostree/applications.yml @@ -1,4 +1,8 @@ modules: + - type: script + scripts: + - setupcodiumrepo.sh + - type: rpm-ostree install: # applications @@ -13,8 +17,9 @@ modules: - file-roller - file-roller-nautilus - # text editor + # text editors - neovim + - codium # software store - gnome-software @@ -37,4 +42,7 @@ modules: - zsh # zoxide for z stuff - zoxide - + + - type: script + snippets: + - "sudo rm /etc/yum.repos.d/vscodium.repo"