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 # 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 { services.syncthing = lib.mkIf srvConfig.syncthingEnable {
@ -106,24 +108,24 @@ in
user = "myusername"; user = "myusername";
dataDir = "${srvConfig.nfsRoot}/kage/syncthing"; dataDir = "${srvConfig.nfsRoot}/kage/syncthing";
configDir = "${srvConfig.nfsRoot}/kage/.config/syncthing"; configDir = "${srvConfig.nfsRoot}/kage/.config/syncthing";
overrideDevices = true; # overrides any devices 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 # overrideFolders = true; # overrides any folders added or deleted through the WebUI
openDefaultPorts = true; openDefaultPorts = true;
settings = { settings = {
devices = { devices = {
"supernote" = { id = "DEVICE-ID-GOES-HERE"; }; # "supernote" = { id = "DEVICE-ID-GOES-HERE"; };
"pixel" = { id = "DEVICE-ID-GOES-HERE2"; }; # "pixel" = { id = "DEVICE-ID-GOES-HERE2"; };
"winmax" = { id = "id3"; }; # "winmax" = { id = "id3"; };
"nix-box" = { id = "id4"; }; # "nix-box" = { id = "id4"; };
}; };
folders = { folders = {
"supernote" = { # Name of folder in Syncthing, also the folder ID "supernote" = { # Name of folder in Syncthing, also the folder ID
path = "${srvConfig.nfsRoot}/kage/syncthing/supernote"; # Which folder to add to Syncthing 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 "web" = { # Name of folder in Syncthing, also the folder ID
path = "${srvConfig.nfsRoot}/kage/syncthing/web"; # Which folder to add to Syncthing 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
}; };
}; };
}; };