mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-09 19:03:36 +02:00
26 lines
885 B
Nix
26 lines
885 B
Nix
# ===============================================================================
|
|
#
|
|
# Sunshine: A self-hosted game stream server for Moonlight(Client).
|
|
# It's designed for game streaming, but it can be used for remote desktop as well.
|
|
#
|
|
# How to use(Web Console: <https://localhost:47990/>):
|
|
# https://docs.lizardbyte.dev/projects/sunshine/en/latest/about/usage.html
|
|
#
|
|
# Check Service Status
|
|
# systemctl --user status sunshine
|
|
# Check logs
|
|
# journalctl --user -u sunshine --since "2 minutes ago"
|
|
#
|
|
# References:
|
|
# https://github.com/NixOS/nixpkgs/blob/nixos-25.05/nixos/modules/services/networking/sunshine.nix
|
|
#
|
|
# ===============================================================================
|
|
{
|
|
services.sunshine = {
|
|
enable = true;
|
|
autoStart = true;
|
|
capSysAdmin = true; # only needed for Wayland -- omit this when using with Xorg
|
|
openFirewall = true;
|
|
};
|
|
}
|