setup sunshine + moonlight

This commit is contained in:
Dmitriy Kholkin 2022-12-07 22:16:53 +03:00
parent 4f344a8129
commit fc2563a58d
3 changed files with 21 additions and 0 deletions

View File

@ -5,6 +5,7 @@
nixosProfiles.stable-diffusion
nixosProfiles.a2ln-server
nixosProfiles.sunshine
];
deviceSpecific.devInfo = {

View File

@ -95,6 +95,7 @@ with config.deviceSpecific; {
gamescope
goverlay
lutris
moonlight-qt
obs-studio
polymc
reshade-shaders

View File

@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }: {
home-manager.users.alukard = {
home.packages = [ pkgs.sunshine ];
systemd.user.services.sunshine = {
Unit.Description = "Sunshine is a Gamestream host for Moonlight.";
Service.ExecStart = "${pkgs.sunshine}/bin/sunshine";
Install.WantedBy = [ "graphical-session.target" ];
};
};
networking.firewall = {
allowedTCPPorts = [
47984 47989 48010
47990
];
allowedUDPPorts = [
47998 47999 48000 48002 48010
];
};
}