diff --git a/configuration.nix b/configuration.nix index 7302fb6..4bcc759 100644 --- a/configuration.nix +++ b/configuration.nix @@ -183,9 +183,15 @@ in }; }; services.resolved.enable = true; + services.sunshine = { + enable = true; + autoStart = true; + capSysAdmin = true; + openFirewall = true; + }; - # Install firefox. programs.firefox.enable = true; + programs.steam.enable = true; # Allow unfree packages nixpkgs.config.allowUnfree = true; @@ -225,6 +231,12 @@ in # networking.firewall.enable = false; networking.firewall.enable = true; networking.firewall.allowPing = true; + # Sunshine + networking.firewall.allowedTCPPorts = [ 47984 47989 47990 48010 ]; + networking.firewall.allowedUDPPortRanges = [ + { from = 47998; to = 48000; } + { from = 8000; to = 8010; } + ]; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions