Sunshine: Difference between revisions
→Install: Add `uinput` configuration |
m →Uinput setup: add more info |
||
| (One intermediate revision by the same user not shown) | |||
| Line 13: | Line 13: | ||
openFirewall = true; | openFirewall = true; | ||
}; | }; | ||
</nowiki>|name=/etc/nixos/configuration.nix|lang=nix}}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 = { | </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" ]; | extraGroups = [ "uinput" ]; | ||
};|name=/etc/nixos/configuration.nix|lang=nix}} | };|name=/etc/nixos/configuration.nix|lang=nix}} | ||
Currently, you need to also enable and create the <code>uinput</code> kernel module (until [https://github.com/NixOS/nixpkgs/pull/493109 this] pull request gets merged). | Currently, you need to also enable and create the <code>uinput</code> kernel module and user group (until [https://github.com/NixOS/nixpkgs/pull/493109 this] pull request gets merged). | ||
{{File|3=hardware.uinput.enable = true;|name=/etc/nixos/configuration.nix|lang=nix}} | {{File|3=hardware.uinput.enable = true;|name=/etc/nixos/configuration.nix|lang=nix}} | ||