about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorChristian Kögler <ck3d@gmx.de>2022-08-31 20:46:54 +0200
committerGitHub <noreply@github.com>2022-08-31 20:46:54 +0200
commit43c0f946a882c1428aa707e318619fa4757bea6c (patch)
tree27d02eea5cf3ce03ebdfde94d2247d23e940b93d /nixos
parent0c12ea491e3553a8b63d351d0da7937893846a93 (diff)
parent7f227409836dcdd49024dc76417544b407f99e7c (diff)
downloadnixlib-43c0f946a882c1428aa707e318619fa4757bea6c.tar
nixlib-43c0f946a882c1428aa707e318619fa4757bea6c.tar.gz
nixlib-43c0f946a882c1428aa707e318619fa4757bea6c.tar.bz2
nixlib-43c0f946a882c1428aa707e318619fa4757bea6c.tar.lz
nixlib-43c0f946a882c1428aa707e318619fa4757bea6c.tar.xz
nixlib-43c0f946a882c1428aa707e318619fa4757bea6c.tar.zst
nixlib-43c0f946a882c1428aa707e318619fa4757bea6c.zip
Merge pull request #188620 from KFearsoff/fix-syncthing-versioning-path
nixos/syncthing: fix path setting for versioning
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/syncthing.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix
index 373fd03223d6..2b029be19cf0 100644
--- a/nixos/modules/services/networking/syncthing.nix
+++ b/nixos/modules/services/networking/syncthing.nix
@@ -268,10 +268,10 @@ in {
                   {
                     versioning = {
                       type = "staggered";
+                      fsPath = "/syncthing/backup";
                       params = {
                         cleanInterval = "3600";
                         maxAge = "31536000";
-                        versionsPath = "/syncthing/backup";
                       };
                     };
                   }
@@ -296,6 +296,14 @@ in {
                       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 {
                     type = attrsOf (either str path);
                     description = mdDoc ''