[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
commit cd51764d0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 = [];