chore(sunshine): Carry over configuration to desktop images too

This commit is contained in:
RJ Trujillo 2023-11-21 06:57:49 -07:00
parent a85f2be1e4
commit bfff18d64a
2 changed files with 24 additions and 0 deletions

View File

@ -22,6 +22,12 @@ screens:
default: true
packages:
- Set input group: sudo -A ujust add-user-to-input-group
Sunshine:
description: A self-hosted game stream host for Moonlight
default: false
packages:
- Install Sunshine: ujust install-sunshine
- Autostart Sunshine: ujust autostart-sunshine
Greenlight:
description: A utility for xCloud and xHome streaming
default: false

View File

@ -20,6 +20,24 @@ configure-waydroid:
deactivate
sudo rm -rf /tmp/waydroid_script
# Install Sunshine
install-sunshine:
#!/usr/bin/env 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
echo "Sunshine is installed!"
# Remove Sunshine
remove-sunshine:
#!/usr/bin/env 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
# Autostart Sunshine
autostart-sunshine:
#!/usr/bin/env bash
systemctl enable --user --now sunshine.service
# Install CoreCtrl for overclocking & undervolting AMD GPUs
install-corectrl:
echo 'Installing CoreCtrl...'