chore: Enable bazzite-user-setup and bazzite-hardware-setup services

This commit is contained in:
Kyle Gospodnetich 2023-08-08 14:48:45 -07:00
parent 444a2aac3e
commit 2d3ea5a16b
3 changed files with 25 additions and 5 deletions

View File

@ -148,17 +148,19 @@ RUN rm /usr/share/applications/shredder.desktop && \
mkdir -p /etc/flatpak/remotes.d && \
wget -q https://dl.flathub.org/repo/flathub.flatpakrepo -P /etc/flatpak/remotes.d && \
systemctl enable com.system76.Scheduler.service && \
systemctl enable displaylink.service && \
systemctl enable input-remapper.service && \
systemctl unmask flatpak-system-install.service && \
systemctl enable flatpak-system-install.service && \
systemctl disable rpm-ostreed-automatic.timer && \
systemctl --global enable ublue-update.timer && \
systemctl enable displaylink.service && \
systemctl enable input-remapper.service && \
systemctl enable bazzite-hardware-setup.service && \
systemctl --global enable bazzite-user-setup.service && \
if grep -q "kinoite" <<< "${BASE_IMAGE_NAME}"; then \
sed -i '/^PRETTY_NAME/s/Kinoite/Bazzite/' /usr/lib/os-release \
; else \
rm /usr/share/applications/yad-icon-browser.desktop && \
sed -i '/^PRETTY_NAME/s/Silverblue/Bazzite/' /usr/lib/os-release \
sed -i '/^PRETTY_NAME/s/Silverblue/Bazzite GNOME/' /usr/lib/os-release \
; fi && \
echo -e "IMAGE_NAME=${IMAGE_NAME}\nBASE_IMAGE_NAME=${BASE_IMAGE_NAME}\nIMAGE_FLAVOR=${IMAGE_FLAVOR}\nFEDORA_MAJOR_VERSION=${FEDORA_MAJOR_VERSION}" >> /etc/default/bazzite && \
rm -rf \

View File

@ -8,6 +8,8 @@ if [[ $BASE_IMAGE_NAME =~ "kinoite" ]]; then
kcmshell5 kcm_kwin_scripts
if [[ $IMAGE_NAME =~ "deck" ]]; then
echo 'Running setup for Kinoite on Steam Deck'
echo 'Creating Desktop shortcuts'
cp /usr/share/applications/steam.desktop ~/Desktop
sed -i 's@Steam (Runtime)@Steam@g' ~/Desktop/steam.desktop
@ -33,8 +35,12 @@ else
if [[ $IMAGE_NAME =~ "deck" ]]; then
echo 'Running setup for Silverblue on Steam Deck'
echo 'Enabling tofumenu fork'
echo 'Enabling Bazzite tofu menu fork'
gsettings set org.gnome.shell.extensions.fedora-menu menu-button-icon-size 20
gnome-shell-extension-cl -e tofumenu@tofu
fi
fi
fi
# Prevent future executions
echo "Writing state file"
touch $HOME/.bazzite-configured

View File

@ -0,0 +1,12 @@
[Unit]
Description=Configure Bazzite for current user
Requires=xdg-desktop-autostart.target
ConditionPathExists=!%h/.bazzite-configured
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/bazzite-user-setup
[Install]
WantedBy=multi-user.target