Merge pull request #188620 from KFearsoff/fix-syncthing-versioning-path

nixos/syncthing: fix path setting for versioning
This commit is contained in:
Christian Kögler 2022-08-31 20:46:54 +02:00 committed by GitHub
commit 43c0f946a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -268,10 +268,10 @@ in {
{ {
versioning = { versioning = {
type = "staggered"; type = "staggered";
fsPath = "/syncthing/backup";
params = { params = {
cleanInterval = "3600"; cleanInterval = "3600";
maxAge = "31536000"; maxAge = "31536000";
versionsPath = "/syncthing/backup";
}; };
}; };
} }
@ -296,6 +296,14 @@ in {
See <https://docs.syncthing.net/users/versioning.html>. See <https://docs.syncthing.net/users/versioning.html>.
''; '';
}; };
fsPath = mkOption {
default = "";
type = either str path;
description = mdDoc ''
Path to the versioning folder.
See <https://docs.syncthing.net/users/versioning.html>.
'';
};
params = mkOption { params = mkOption {
type = attrsOf (either str path); type = attrsOf (either str path);
description = mdDoc '' description = mdDoc ''