diff options
author | Jasper Ras <jaspert.ras@gmail.com> | 2025-01-26 17:38:33 +0100 |
---|---|---|
committer | Jasper Ras <jaspert.ras@gmail.com> | 2025-01-26 17:38:33 +0100 |
commit | 6906281953c068a16ef4da4f2febacf2ef171610 (patch) | |
tree | 396553d9ee34adf0833d2a50d9778cd376792c09 | |
parent | 65b2212e96ad990d9e875bc4495699871547ed82 (diff) |
Sunshine already opens ports
-rw-r--r-- | hosts/tarrel.nix | 10 | ||||
-rw-r--r-- | services/sunshine.nix | 13 |
2 files changed, 7 insertions, 16 deletions
diff --git a/hosts/tarrel.nix b/hosts/tarrel.nix index 59ecf4c..71b70af 100644 --- a/hosts/tarrel.nix +++ b/hosts/tarrel.nix @@ -2,9 +2,6 @@ { imports = [ ./hardware-configuration/tarrel.nix - - # Services - ../services/sunshine.nix ]; boot.loader.systemd-boot.enable = true; @@ -75,4 +72,11 @@ }; system.stateVersion = "24.05"; # Did you read the comment? + + services.sunshine = { + enable = true; + autoStart = true; + capSysAdmin = true; + openFirewall = true; + }; } diff --git a/services/sunshine.nix b/services/sunshine.nix deleted file mode 100644 index 4e09aa8..0000000 --- a/services/sunshine.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ ... }: -{ - services.sunshine = { - enable = true; - autoStart = true; - capSysAdmin = true; - openFirewall = true; - }; - - networking.firewall.allowedTCPPorts = [ 47984 47989 48010 ]; - networking.firewall.allowedUDPPorts = [ 48010 ]; - networking.firewall.allowedUDPPortRanges = [ { from = 47998; to = 48000; } ]; -} |