diff --git a/modules/shared/nixos/default.nix b/modules/shared/nixos/default.nix index fe4259c1..c87edc1b 100644 --- a/modules/shared/nixos/default.nix +++ b/modules/shared/nixos/default.nix @@ -231,4 +231,23 @@ enable = true; memoryPercent = 40; }; + + systemd.user.services.sunshine = { + enable = true; + description = "sunshine"; + wantedBy = ["graphical-session.target"]; + serviceConfig = { + ExecStart = "${master.sunshine}/bin/sunshine"; + }; + }; + + # for sunshine + services.udev.extraRules = '' + KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess" + ''; + + networking.firewall.allowedTCPPorts = [47984 47989 47990 48010]; + networking.firewall.allowedUDPPorts = [47998 47999 48000]; + + boot.kernelModules = ["uinput"]; } \ No newline at end of file diff --git a/users/default.nix b/users/default.nix index cfee3131..8c234e77 100644 --- a/users/default.nix +++ b/users/default.nix @@ -13,9 +13,7 @@ system = "x86_64-linux"; stateVersion = "23.05"; - modules = [ - ./shaurizard/home.nix - ]; + modules = [ ./shaurizard/home.nix ]; }; }; } \ No newline at end of file