summary refs log tree commit diff
path: root/nixos/modules/services/networking/syncthing.nix
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2019-11-13 12:25:52 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2019-11-13 12:25:52 +0100
commit17b90543200de887c28ecfdd353fa4d5f076b8c8 (patch)
tree3403b81e3230c476d4945f952e9785e19bdc433d /nixos/modules/services/networking/syncthing.nix
parent7805d43e3329e77892835f124cef978b617280ba (diff)
downloadnixpkgs-17b90543200de887c28ecfdd353fa4d5f076b8c8.tar
nixpkgs-17b90543200de887c28ecfdd353fa4d5f076b8c8.tar.gz
nixpkgs-17b90543200de887c28ecfdd353fa4d5f076b8c8.tar.bz2
nixpkgs-17b90543200de887c28ecfdd353fa4d5f076b8c8.tar.lz
nixpkgs-17b90543200de887c28ecfdd353fa4d5f076b8c8.tar.xz
nixpkgs-17b90543200de887c28ecfdd353fa4d5f076b8c8.tar.zst
nixpkgs-17b90543200de887c28ecfdd353fa4d5f076b8c8.zip
Revert "nixos/syncthing: simple versioning"
Descriptions are missing for params and type, blocking channels
from advancing.

https://nix-cache.s3.amazonaws.com/log/nkclpxwm91qhw0v1jg5dvzzckb7zh23s-nixpkgs-metrics.drv

This reverts commit 69493cc67a7be9b7913ec5a69339995956fabc63.
Diffstat (limited to 'nixos/modules/services/networking/syncthing.nix')
-rw-r--r--nixos/modules/services/networking/syncthing.nix54
1 files changed, 0 insertions, 54 deletions
diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix
index 96b90021a81..165fd5970cf 100644
--- a/nixos/modules/services/networking/syncthing.nix
+++ b/nixos/modules/services/networking/syncthing.nix
@@ -18,7 +18,6 @@ let
     fsWatcherEnabled = folder.watch;
     fsWatcherDelayS = folder.watchDelay;
     ignorePerms = folder.ignorePerms;
-    versioning = folder.versioning;
   }) (filterAttrs (
     _: folder:
     folder.enable
@@ -221,59 +220,6 @@ in {
                 '';
               };
 
-              versioning = mkOption {
-                default = null;
-                description = ''
-                  how to keep changed/deleted files with syncthing.
-                  there are 4 different types of versioning with different parameters
-                  see https://docs.syncthing.net/users/versioning.html#simple-file-versioning
-                '';
-                example = [
-                  {
-                    versioning = {
-                      type = "simple";
-                      params.keep = "10";
-                    };
-                  }
-                  {
-                    versioning = {
-                      type = "trashcan";
-                      params.cleanoutDays = "1000";
-                    };
-                  }
-                  {
-                    versioning = {
-                      type = "staggered";
-                      params = {
-                        cleanInterval = "3600";
-                        maxAge = "31536000";
-                        versionsPath = "/syncthing/backup";
-                      };
-                    };
-                  }
-                  {
-                    versioning = {
-                      type = "external";
-                      params.versionsPath = pkgs.writers.writeBash "backup" ''
-                        folderpath="$1"
-                        filepath="$2"
-                        rm -rf "$folderpath/$filepath"
-                      '';
-                    };
-                  }
-                ];
-                type = with types; nullOr (submodule {
-                  options = {
-                    type = mkOption {
-                      type = enum [ "external" "simple" "staggered" "trashcan" ];
-                    };
-                    params = mkOption {
-                      type = attrsOf (either str path);
-                    };
-                  };
-                });
-              };
-
               rescanInterval = mkOption {
                 type = types.int;
                 default = 3600;