From c616655b97ddbb14dcaa69cba84c85dca1961662 Mon Sep 17 00:00:00 2001 From: Nathan Anderson Date: Mon, 18 Mar 2024 12:54:37 -0600 Subject: [PATCH] removed all the declarative syncthing settings --- shared/server-configuration.nix | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/shared/server-configuration.nix b/shared/server-configuration.nix index 8450b97..7f10a6a 100644 --- a/shared/server-configuration.nix +++ b/shared/server-configuration.nix @@ -98,7 +98,9 @@ in ''; }; # nfs port TODO make dependant on option enabled - networking.firewall.allowedTCPPorts = [ 2049 ]; + # 2049 - nfs + # 8384 - syncthing + networking.firewall.allowedTCPPorts = [ 2049 8384 ]; services.syncthing = lib.mkIf srvConfig.syncthingEnable { @@ -106,24 +108,24 @@ in user = "myusername"; dataDir = "${srvConfig.nfsRoot}/kage/syncthing"; configDir = "${srvConfig.nfsRoot}/kage/.config/syncthing"; - overrideDevices = true; # overrides any devices added or deleted through the WebUI - overrideFolders = true; # overrides any folders added or deleted through the WebUI + # overrideDevices = true; # overrides any devices added or deleted through the WebUI + # overrideFolders = true; # overrides any folders added or deleted through the WebUI openDefaultPorts = true; settings = { devices = { - "supernote" = { id = "DEVICE-ID-GOES-HERE"; }; - "pixel" = { id = "DEVICE-ID-GOES-HERE2"; }; - "winmax" = { id = "id3"; }; - "nix-box" = { id = "id4"; }; + # "supernote" = { id = "DEVICE-ID-GOES-HERE"; }; + # "pixel" = { id = "DEVICE-ID-GOES-HERE2"; }; + # "winmax" = { id = "id3"; }; + # "nix-box" = { id = "id4"; }; }; folders = { "supernote" = { # Name of folder in Syncthing, also the folder ID path = "${srvConfig.nfsRoot}/kage/syncthing/supernote"; # Which folder to add to Syncthing - devices = [ "supernote" "pixel" ]; # Which devices to share the folder with + # devices = [ "supernote" "pixel" ]; # Which devices to share the folder with }; "web" = { # Name of folder in Syncthing, also the folder ID path = "${srvConfig.nfsRoot}/kage/syncthing/web"; # Which folder to add to Syncthing - devices = [ "supernote" "pixel" "winmax" "nix-box" ]; # Which devices to share the folder with + # devices = [ "supernote" "pixel" "winmax" "nix-box" ]; # Which devices to share the folder with }; }; };