summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorJasper Ras <jaspert.ras@gmail.com>2025-01-25 11:41:20 +0100
committerJasper Ras <jaspert.ras@gmail.com>2025-01-25 11:41:28 +0100
commit06ee5c04836c0ede5a87b9df72740d140b88ef69 (patch)
treef6a9f95b0e4560a62485c30cfea60e9feaaf7d42 /services
parent9a0421d410e45d5925dd73bdc668aee9f76d3660 (diff)
stuff
Diffstat (limited to 'services')
-rw-r--r--services/sunshine.nix13
-rw-r--r--services/unifi.nix7
2 files changed, 20 insertions, 0 deletions
diff --git a/services/sunshine.nix b/services/sunshine.nix
new file mode 100644
index 0000000..4e09aa8
--- /dev/null
+++ b/services/sunshine.nix
@@ -0,0 +1,13 @@
+{ ... }:
+{
+ 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; } ];
+}
diff --git a/services/unifi.nix b/services/unifi.nix
new file mode 100644
index 0000000..7d351d4
--- /dev/null
+++ b/services/unifi.nix
@@ -0,0 +1,7 @@
+{ ... }:
+{
+ # https://help.ui.com/hc/en-us/articles/218506997-Required-Ports-Reference
+ networking.firewall.allowedTCPPorts = [ 8080 8000 8443 8880 8843 6789 27117 ];
+ networking.firewall.allowedUDPPorts = [ 3478 5514 10001 1900 123 ];
+ networking.firewall.allowedUDPPortRanges = [ { from = 5656; to = 5699; } ];
+}