diff options
author | Lassulus <github@lassul.us> | 2020-09-05 22:05:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-05 22:05:04 +0200 |
commit | 964606d40f2db6fde24da4637a44991211b2e6a4 (patch) | |
tree | c7d57a0eb605b59e7b0071b8b42957eef456078a /nixos | |
parent | b25c6a293ebacdc9c9e6e3138abc422164b97441 (diff) | |
parent | 5789ffc50942211497128bccd96604122077125f (diff) |
Merge pull request #96659 from doronbehar/module/syncthing
nixos/syncthing: add ignoreDelete folder option
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/syncthing.nix | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index e717d78feed57..28348c7893a0d 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -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>. + ''; + }; + }; })); }; |