Sunshine: Difference between revisions
Correct information about GameStream protocol (Moonlight is an open-source implementation) |
imported from old wiki |
||
Line 2: | Line 2: | ||
== Install == | == Install == | ||
To install Sunshine | |||
To install Sunshine and enable it you can use the following snippet: | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
services.sunshine = { | |||
services | |||
enable = true; | enable = true; | ||
autoStart = true; | |||
capSysAdmin = true; | |||
openFirewall = true; | |||
}; | }; | ||
</nowiki>}} | |||
For manual Firewall configuration you can open network ports as shown here: | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
networking.firewall = { | |||
enable = true; | |||
allowedTCPPorts = [ 47984 47989 47990 48010 ]; | |||
allowedUDPPortRanges = [ | |||
{ from = 47998; to = 48000; } | |||
{ from = 8000; to = 8010; } | |||
} | ]; | ||
}; | |||
</nowiki>}} | </nowiki>}} | ||