removed all the declarative syncthing settings

This commit is contained in:
Nathan Anderson 2024-03-18 12:54:37 -06:00
parent 8e42d4f55d
commit c616655b97

View File

@ -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
};
};
};