mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-06 00:58:16 +00:00
62 lines
2.5 KiB
Plaintext
62 lines
2.5 KiB
Plaintext
FROM ghcr.io/ublue-os/kinoite-nvidia:latest
|
|
|
|
COPY etc-desktop /etc
|
|
COPY usr-desktop /usr
|
|
|
|
# Re-enable RPMFusion repos & add Copr repos
|
|
RUN sed -i 's@enabled=0@enabled=1@g' /etc/yum.repos.d/rpmfusion-nonfree{,-updates}.repo && \
|
|
sed -i 's@enabled=0@enabled=1@g' /etc/yum.repos.d/rpmfusion-free{,-updates}.repo && \
|
|
wget https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/repo/fedora-$(rpm -E %fedora)/kylegospo-bazzite-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_kylegospo-bazzite.repo && \
|
|
wget https://copr.fedorainfracloud.org/coprs/kylegospo/system76-scheduler/repo/fedora-$(rpm -E %fedora)/kylegospo-system76-scheduler-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_kylegospo-system76-scheduler.repo
|
|
|
|
# Install new packages
|
|
RUN rpm-ostree install \
|
|
distrobox \
|
|
steam-devices \
|
|
steamdeck-kde-themes \
|
|
duperemove \
|
|
kdeconnectd \
|
|
system76-scheduler \
|
|
btop \
|
|
fish \
|
|
kate \
|
|
openrgb-udev-rules
|
|
|
|
# Remove unneeded packages
|
|
RUN rpm-ostree override remove toolbox
|
|
|
|
# Install mesa freeworld components and ffmpeg for hardware accelerated video decode
|
|
RUN rpm-ostree override remove \
|
|
mesa-va-drivers \
|
|
libavutil-free \
|
|
libswscale-free \
|
|
libswresample-free \
|
|
libavformat-free \
|
|
libavcodec-free \
|
|
libavfilter-free \
|
|
libpostproc-free \
|
|
--install=mesa-va-drivers-freeworld.x86_64 \
|
|
--install=mesa-va-drivers-freeworld.i686 \
|
|
--install=mesa-vdpau-drivers-freeworld \
|
|
--install=libva-intel-driver \
|
|
--install=nvidia-vaapi-driver \
|
|
--install=ffmpeg-libs \
|
|
--install=ffmpeg \
|
|
--install=libavcodec-freeworld
|
|
|
|
# Cleanup & Finalize
|
|
RUN sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/rpmfusion-nonfree{,-updates}.repo && \
|
|
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/rpmfusion-free{,-updates}.repo && \
|
|
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_kylegospo-bazzite.repo && \
|
|
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_kylegospo-system76-scheduler.repo && \
|
|
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/user.conf && \
|
|
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/system.conf && \
|
|
sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \
|
|
systemctl enable rpm-ostreed-automatic.timer && \
|
|
rpm-ostree cleanup -m && \
|
|
rm -rf \
|
|
/tmp/* \
|
|
/var/* && \
|
|
mkdir -p /var/lib/duperemove && \
|
|
ostree container commit
|