diff --git a/hosts/egghead/configuration.nix b/hosts/egghead/configuration.nix index c349868..624edd2 100644 --- a/hosts/egghead/configuration.nix +++ b/hosts/egghead/configuration.nix @@ -107,7 +107,8 @@ # Only related to this PC - above to be moved to a more common config when ive added more hosts prismlauncher komikku - ledger-live-desktop + ledger-live-desktop + sunshine ]; programs.steam = { @@ -118,7 +119,15 @@ }; # Custom services - services.tailscale.enable = true; + services = { + tailscale.enable = true; + sunshine = { + enable = true; + autoStart = true; + capSysAdmin = true; + openFirewall = true; + }; + }; programs.bash = { interactiveShellInit = '' @@ -152,10 +161,14 @@ # services.openssh.enable = true; # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; - # networking.firewall.allowedUDPPorts = [ ... ]; - # Or disable the firewall altogether. - # networking.firewall.enable = false; + networking.firewall = { + enable = true; + allowedTCPPorts = [ 47984 47989 47990 48010 ]; + 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