[Unit] Description=Self-hosted game stream host for Moonlight StartLimitIntervalSec=500 StartLimitBurst=5 PartOf=graphical-session.target After=graphical-session.target [Service] Type=simple # Ensure exactly one Hyprland headless output exists and sunshine.conf points # at its current name before Sunshine probes encoders. Non-fatal. ExecStartPre=-%h/.local/share/omarchy-moonlight/bin/sunshine-prestart.sh ExecStart=/usr/bin/sunshine Restart=on-failure RestartSec=5s [Install] WantedBy=graphical-session.target