fix synthing

This commit is contained in:
Joakim Repomaa
2026-03-07 13:20:19 +02:00
parent fb6ebd55c3
commit 43848028af
2 changed files with 10 additions and 0 deletions

View File

@@ -27,5 +27,14 @@ in
vHosts.${fqdn}.locations."/".proxyPort = cfg.port;
};
};
systemd.services.syncthing.serviceConfig =
lib.mkIf
(
cfg.dataDir == "/var/lib/syncthing" || cfg.dataDir == null || cfg.configDir == "/var/lib/syncthing"
)
{
StateDirectory = "syncthing";
};
};
}