From 5048f4455957c34f6c3981720a6219323dfa2aae Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Wed, 9 Jul 2025 01:46:28 +0800 Subject: [PATCH] feat(homes/rafiq): enable sunshine and fix modules for steam --- nix/homes/rafiq/desktop/default.nix | 32 +++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/nix/homes/rafiq/desktop/default.nix b/nix/homes/rafiq/desktop/default.nix index e9a9747..1d39053 100644 --- a/nix/homes/rafiq/desktop/default.nix +++ b/nix/homes/rafiq/desktop/default.nix @@ -6,16 +6,29 @@ "steam" "steam-unwrapped" ]; - flake.modules.nixos.graphical = { - security.pam.services.hyprlock = { }; - programs.steam = { - enable = true; - gamescopeSession.enable = true; + flake.modules.nixos.graphical = + { config, ... }: + { + security.pam.services.hyprlock = { }; + programs.steam = { + enable = true; + gamescopeSession.enable = true; + }; + services.sunshine = { + enable = true; + capSysAdmin = true; + openFirewall = true; + settings = { + sunshine_name = config.networking.hostName; + origin_pin_allowed = "wan"; + origin_web_ui_allowed = "wan"; + }; + applications = { }; + }; + # spotifyd + networking.firewall.allowedTCPPorts = [ 5353 ]; + networking.firewall.allowedUDPPorts = [ 5353 ]; }; - # spotifyd - networking.firewall.allowedTCPPorts = [ 5353 ]; - networking.firewall.allowedUDPPorts = [ 5353 ]; - }; flake.modules.homeManager.rafiq = { pkgs, @@ -73,6 +86,7 @@ ".tor project" ".local/share/Steam" ".local/share/PrismLauncher" + ".config/sunshine" ]; home = { packages = with pkgs; [