Files
Dave Jansen daaa2b660f
Some checks are pending
Build container image / Build and push image (push) Has started running
Exclude Taiwan as I'm having missing package errors there
2026-03-12 14:54:04 +09:00

79 lines
1.7 KiB
Bash
Executable File

#!/bin/bash
set -ouex pipefail
# Copy System Files onto root
rsync -rvK /ctx/sys_files/ /
# Copy cosign.pub key into the right location
mkdir -p /etc/pki/containers
cp /ctx/cosign.pub /etc/pki/containers/davejansen.pub
### Install packages
# Add country query to all repo metalinks
# shellcheck disable=SC2016
sed -i -e '/^metalink\=/s/\$releasever\&arch\=\$basearch$/\$releasever\&arch\=\$basearch\&country\=KR,JP,AU/g' /etc/yum.repos.d/*.repo
# Update all existing packages
dnf5 update -y
# Install my own layered packages
dnf5 install -y \
fish \
tmux \
mosh \
waypipe \
neovim \
ripgrep \
curl wget \
stow \
pass \
wl-clipboard \
htop \
gnupg2-scdaemon \
pinentry pinentry-tty pinentry-gnome3 \
patch gcc gcc-c++ \
python3 python3-pip \
nodejs \
php composer \
weechat \
neomutt libnotify notmuch abook isync \
khal vdirsyncer \
newsboat \
jq \
dotnet-sdk-10.0
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install LazyGit
dnf5 copr enable -y dejan/lazygit
dnf5 install -y lazygit
# Install `host-spawn`
wget https://github.com/1player/host-spawn/releases/latest/download/host-spawn-x86_64
chmod +x host-spawn-x86_64
mv host-spawn-x86_64 /usr/local/bin/host-spawn
# Set up a few host-spawn aliases
ln -s /usr/local/bin/host-spawn /usr/local/bin/flatpak
ln -s /usr/local/bin/host-spawn /usr/sbin/podman
# For seeing notifications (ie. from )
ln -s /usr/local/bin/host-spawn /usr/sbin/dbus-send
ln -s /usr/local/bin/host-spawn /usr/local/bin/op
# Cleanup
dnf5 clean all
# Remove tmp files
rm -rf /tmp/* || true
# # Make sure /var/tmp is properly created
# mkdir -p /var/tmp
# chmod -R 1777 /var/tmp
echo "Done."