[Backport release-24.05] Syncthing: implemented folder type (#340775)

This commit is contained in:
Peder Bergebakken Sundt
2024-09-13 02:51:44 +02:00
committed by GitHub

View File

@@ -368,6 +368,15 @@ in {
'';
};
type = mkOption {
type = types.enum [ "sendreceive" "sendonly" "receiveonly" "receiveencrypted" ];
default = "sendreceive";
description = ''
Controls how the folder is handled by Syncthing.
See <https://docs.syncthing.net/users/config.html#config-option-folder.type>.
'';
};
devices = mkOption {
type = types.listOf types.str;
default = [];