1
Fork 0

Move syncthing config dir as well

This commit is contained in:
prescientmoon 2024-05-29 23:19:37 +02:00
parent 176b9cb6e5
commit 8b8539196d
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -12,7 +12,7 @@ in
enable = true;
openDefaultPorts = true;
configDir = "/persist/state/${config.users.users.pilot.home}/syncthing/.config/syncthing";
configDir = "${dataDir}/config";
overrideDevices = true;
overrideFolders = true;
@ -34,5 +34,5 @@ in
systemd.services.syncthing.serviceConfig.RuntimeMaxSec = "1d";
# I'm not sure this is needed anymore, I just know I got some ownership errors at some point.
systemd.tmpfiles.rules = [ "d ${dataDir} - ${user} ${group} -" ];
systemd.tmpfiles.rules = [ "d ${dataDir} - ${user} ${group}" ];
}