nixos/syncthing: add ignoreDelete folder option
This commit is contained in:
parent
ddb59ca5cc
commit
5789ffc509
|
@ -18,6 +18,7 @@ let
|
||||||
fsWatcherEnabled = folder.watch;
|
fsWatcherEnabled = folder.watch;
|
||||||
fsWatcherDelayS = folder.watchDelay;
|
fsWatcherDelayS = folder.watchDelay;
|
||||||
ignorePerms = folder.ignorePerms;
|
ignorePerms = folder.ignorePerms;
|
||||||
|
ignoreDelete = folder.ignoreDelete;
|
||||||
versioning = folder.versioning;
|
versioning = folder.versioning;
|
||||||
}) (filterAttrs (
|
}) (filterAttrs (
|
||||||
_: folder:
|
_: folder:
|
||||||
|
@ -284,8 +285,6 @@ in {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
rescanInterval = mkOption {
|
rescanInterval = mkOption {
|
||||||
type = types.int;
|
type = types.int;
|
||||||
default = 3600;
|
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>.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue