Merge pull request #188620 from KFearsoff/fix-syncthing-versioning-path
nixos/syncthing: fix path setting for versioning
This commit is contained in:
commit
43c0f946a8
|
@ -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 ''
|
||||||
|
|
Loading…
Reference in a new issue