Merge pull request #96659 from doronbehar/module/syncthing

nixos/syncthing: add ignoreDelete folder option
This commit is contained in:
Lassulus 2020-09-05 22:05:04 +02:00 committed by GitHub
commit 964606d40f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ let
fsWatcherEnabled = folder.watch;
fsWatcherDelayS = folder.watchDelay;
ignorePerms = folder.ignorePerms;
ignoreDelete = folder.ignoreDelete;
versioning = folder.versioning;
}) (filterAttrs (
_: folder:
@ -284,8 +285,6 @@ in {
});
};
rescanInterval = mkOption {
type = types.int;
default = 3600;
@ -327,6 +326,16 @@ in {
'';
};
ignoreDelete = mkOption {
type = types.bool;
default = false;
description = ''
Whether to delete files in destination. See <link
xlink:href="https://docs.syncthing.net/advanced/folder-ignoredelete.html">
upstream's docs</link>.
'';
};
};
}));
};