Jump to content

Sunshine: Difference between revisions

add udev
(sunshine: needs to be https)
(add udev)
Line 2: Line 2:


== Install ==
== Install ==
To install Sunshine and enable to for use you will need to open up network ports as shown here:{{file|/etc/nixos/configuration.nix|nix|<nowiki>
To install Sunshine, you will need to open up firewall ports, install udev rules and provide a setuid wrapper,
so that sunshine can capture the display:
 
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{ pkgs, ... }: {
{ pkgs, ... }: {
   environment.systemPackages = [
   environment.systemPackages = [
Line 8: Line 11:
     pkgs.moonlight-qt #for testing purposes.
     pkgs.moonlight-qt #for testing purposes.
   ];
   ];
  services.udev.packages = [ pkgs.sunshine ]; # allow access to create virtual input interfaces.
   networking.firewall = {
   networking.firewall = {
     enable = true;
     enable = true;