feat: Switch to layered sunshine

Fixes #649
This commit is contained in:
Kyle Gospodnetich 2024-01-15 17:15:32 -08:00
parent ee08b8c4ac
commit a524faac6d
3 changed files with 23 additions and 10 deletions

View File

@ -444,7 +444,6 @@ RUN /tmp/image-info.sh && \
systemctl disable rpm-ostreed-automatic.timer && \
systemctl enable ublue-update.timer && \
systemctl enable gamescope-workaround.service && \
systemctl enable sunshine-workaround.service && \
systemctl enable waydroid-workaround.service && \
systemctl enable bazzite-hardware-setup.service && \
systemctl enable tailscaled.service && \

View File

@ -60,15 +60,22 @@ configure-waydroid:
# Install Sunshine
install-sunshine:
#!/usr/bin/bash
flatpak install --system --noninteractive flathub dev.lizardbyte.app.Sunshine
flatpak run --command=additional-install.sh app/dev.lizardbyte.app.Sunshine/x86_64/stable || true
sudo sed -i '0,/enabled=0/s//enabled=1/' /etc/yum.repos.d/rpmfusion-nonfree.repo
sudo sed -i '0,/enabled=0/s//enabled=1/' /etc/yum.repos.d/rpmfusion-nonfree-updates.repo
systemctl enable sunshine-workaround.service
ublue-update --wait
rpm-ostree install -y sunshine
echo "Sunshine is installed!"
# Remove Sunshine
remove-sunshine:
#!/usr/bin/bash
flatpak run --command=remove-additional-install.sh app/dev.lizardbyte.app.Sunshine/x86_64/stable || true
flatpak uninstall --delete-data --noninteractive dev.lizardbyte.sunshine
sudo sed -i '0,/enabled=1/s//enabled=0/' /etc/yum.repos.d/rpmfusion-nonfree.repo
sudo sed -i '0,/enabled=1/s//enabled=0/' /etc/yum.repos.d/rpmfusion-nonfree-updates.repo
systemctl disable sunshine-workaround.service
ublue-update --wait
rpm-ostree remove -y sunshine
echo "Sunshine has been uninstalled."
# Autostart Sunshine
autostart-sunshine:
@ -154,7 +161,7 @@ get-steamcmd:
install-openrazer:
sudo wget https://download.opensuse.org/repositories/hardware:/razer/Fedora_$(rpm -E %fedora)/hardware:razer.repo -O /etc/yum.repos.d/hardware:razer.repo && \
ublue-update --wait && \
rpm-ostree install openrazer-meta razergenie && \
rpm-ostree install -y openrazer-meta razergenie && \
if ! grep -q "plugdev" /etc/group; then \
sudo bash -c 'grep "plugdev" /lib/group >> /etc/group' \
; fi && \

View File

@ -50,15 +50,22 @@ configure-waydroid:
# Install Sunshine
install-sunshine:
#!/usr/bin/bash
flatpak install --system --noninteractive flathub dev.lizardbyte.app.Sunshine
flatpak run --command=additional-install.sh app/dev.lizardbyte.app.Sunshine/x86_64/stable || true
sudo sed -i '0,/enabled=0/s//enabled=1/' /etc/yum.repos.d/rpmfusion-nonfree.repo
sudo sed -i '0,/enabled=0/s//enabled=1/' /etc/yum.repos.d/rpmfusion-nonfree-updates.repo
systemctl enable sunshine-workaround.service
ublue-update --wait
rpm-ostree install -y sunshine
echo "Sunshine is installed!"
# Remove Sunshine
remove-sunshine:
#!/usr/bin/bash
flatpak run --command=remove-additional-install.sh app/dev.lizardbyte.app.Sunshine/x86_64/stable || true
flatpak uninstall --delete-data --noninteractive dev.lizardbyte.sunshine
sudo sed -i '0,/enabled=1/s//enabled=0/' /etc/yum.repos.d/rpmfusion-nonfree.repo
sudo sed -i '0,/enabled=1/s//enabled=0/' /etc/yum.repos.d/rpmfusion-nonfree-updates.repo
systemctl disable sunshine-workaround.service
ublue-update --wait
rpm-ostree remove -y sunshine
echo "Sunshine has been uninstalled."
# Autostart Sunshine
autostart-sunshine: