summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Ras <jaspert.ras@gmail.com>2025-01-26 17:38:33 +0100
committerJasper Ras <jaspert.ras@gmail.com>2025-01-26 17:38:33 +0100
commit6906281953c068a16ef4da4f2febacf2ef171610 (patch)
tree396553d9ee34adf0833d2a50d9778cd376792c09
parent65b2212e96ad990d9e875bc4495699871547ed82 (diff)
Sunshine already opens ports
-rw-r--r--hosts/tarrel.nix10
-rw-r--r--services/sunshine.nix13
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; } ];
-}