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

nixos/syncthing: fix path setting for versioning

Changed files
+9 -1
nixos
modules
services
networking
+9 -1
nixos/modules/services/networking/syncthing.nix
···
{
versioning = {
type = "staggered";
params = {
cleanInterval = "3600";
maxAge = "31536000";
-
versionsPath = "/syncthing/backup";
};
};
}
···
type = enum [ "external" "simple" "staggered" "trashcan" ];
description = mdDoc ''
The type of versioning.
See <https://docs.syncthing.net/users/versioning.html>.
'';
};
···
{
versioning = {
type = "staggered";
+
fsPath = "/syncthing/backup";
params = {
cleanInterval = "3600";
maxAge = "31536000";
};
};
}
···
type = enum [ "external" "simple" "staggered" "trashcan" ];
description = mdDoc ''
The type of versioning.
+
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>.
'';
};