From c149c54b2bb5b5eda440cd06023c1dcd41002ea3 Mon Sep 17 00:00:00 2001 From: serenity-F Date: Thu, 26 Sep 2024 21:43:09 +1000 Subject: [PATCH] moving to set up syncthing and nicotine+ --- core/hosts/hades/network/default.nix | 43 +++++++++++++++++++--------- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/core/hosts/hades/network/default.nix b/core/hosts/hades/network/default.nix index c20940a..638ca7c 100644 --- a/core/hosts/hades/network/default.nix +++ b/core/hosts/hades/network/default.nix @@ -26,28 +26,43 @@ }; ## i knooooowwwwwww i need a firewall but im laaaazzyyyyyyyyyy - networking.firewall = { + networking.firewall = rec { enable = false; - #checkReversePath = "loose"; - #allowedTCPPorts = [ 22000 21027 25565 ]; - #allowedUDPPorts = [ 22000 21027 41641 51820 ]; - #allowedTCPPortRanges = [ - #{ from = 9999; to = 9999; } # KDE Connect - #{ from = 9999; to = 9999; } # Nicotine+ - #]; - #allowedUDPPortRanges = [ - #{ from = 9999; to = 9999; } # KDE Connect - #]; - #interfaces."DEVICENAME".allowedTCPPorts = [ 22999 ] + #checkReversePath = "loose"; + #allowedTCPPortRanges = [ { from = 1720; to = 1770; } ]; + #allowedUDPPortRanges = allowedTCPPortRanges; + #interfaces."DEVICENAME".allowedTCPPorts = [ + #22999 + #] + #allowedTCPPorts = [ + #22000 + #21027 + #25565 + #]; + #allowedUDPPorts = [ + #22000 + #21027 + #41641 + #51820 + #]; + }; + + openFirewall = true; + + services.jellyfin = { + enable = true; + openFirewall = true; }; ## syncthing for device <-> device filesharing and,,, syncing ## still not set up, grrrr services.syncthing = { enable = false; - dataDir = "/home/serenity/"; - configDir = "/home/serenity/.config/syncthing"; user = "serenity"; + dataDir = "/home/serenity/"; + configDir = "/home/serenity/flakes/nixdots/home/config/syncthing"; + overrideDevices = true; + overrideFolder = true; ## these 3 devices are pretty much my entire ecosystem for now settings.devices = {