Skip to content

Commit

Permalink
Revert "nixos/syncthing: simple versioning"
Browse files Browse the repository at this point in the history
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 69493cc.
  • Loading branch information
FRidh committed Nov 13, 2019
1 parent 7805d43 commit 17b9054
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions nixos/modules/services/networking/syncthing.nix
Expand Up @@ -18,7 +18,6 @@ let
fsWatcherEnabled = folder.watch;
fsWatcherDelayS = folder.watchDelay;
ignorePerms = folder.ignorePerms;
versioning = folder.versioning;
}) (filterAttrs (
_: folder:
folder.enable
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 17b9054

Please sign in to comment.