Sunshine: Difference between revisions

Dmchmk (talk | contribs)
No edit summary
m Install: Since the pr got merged into unstable, the snippet applies for <26.05
Tags: Mobile edit Mobile web edit Visual edit
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
To install Sunshine and enable it you can use the following snippet:
To install Sunshine and enable it you can use the following snippet:


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|3=<nowiki>
   services.sunshine = {
   services.sunshine = {
     enable = true;
     enable = true;
Line 13: Line 13:
     openFirewall = true;
     openFirewall = true;
   };
   };
</nowiki>}}
</nowiki>|name=/etc/nixos/configuration.nix|lang=nix}}
 
==== Uinput setup ====
To permit sunshine to emulate input devices, for example to create a virtual mouse and keyboard, add yourself to the <code>uinput</code> group<ref>https://github.com/NixOS/nixpkgs/pull/493109</ref><ref>https://github.com/NixOS/nixpkgs/issues/455737#issuecomment-3451112321</ref>{{File|3=users.users.myuser = {
  extraGroups = [ "uinput" ];
};|name=/etc/nixos/configuration.nix|lang=nix}}
 
For <26.05 stable branch system versions, you need to also enable and create the <code>uinput</code> kernel module and user group.
{{File|3=hardware.uinput.enable = true;|name=/etc/nixos/configuration.nix|lang=nix}}


== Connecting to the host ==
== Connecting to the host ==