-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NixOS module request: sunshine #293298
Comments
This has been on my to-do list for ages :) The module itself wouldn't be a huge deal, and I think I have a plan for tests, just need some time to work on it. |
I actually started working on this a while ago. My module can create valid sunshine.conf and apps.json files (i.e. they work when I start sunshine manually) and open the necessary ports, however I couldn't get the systemd service to function properly. If I recall correctly, the issue was related to getting access to the screen. Here is what I have so far, maybe it can help someone: |
Thanks @so-lar-is! I used yours as inspiration and opened #294641 for this. It's still a draft -- I need to work on the tests -- but any testing or comments are welcome. I've tested on Plasma 6 + Wayland + AMD and seems to work, have not tested much with Xorg or NVIDIA. |
Think it's got all the functionality I had planned -- marked as ready for review. |
Project description
Sunshine has already been packaged here in nixpkgs: https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/servers/sunshine/default.nix
But it doesn't come out of the box just by
nix run nixpkgs#sunshine
, according to https://www.reddit.com/r/NixOS/comments/19137rt/getting_sunshine_to_run/ and https://www.reddit.com/r/NixOS/comments/12bjfam/sunshine_error/ and https://discourse.nixos.org/t/sunshine-self-hosted-game-stream/25608 , at least it needs asecurity.wrappers
and maybeboot.kernelModules = [ "uinput" ];
. It would be better if we could add a NixOS module for it to make it availale just by sth. likeservices.sunshine.enable
orprograms.sunshine.enable
.CC maintainer @devusb
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: