syncthing: add autoAcceptFolders to devices config

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-08-29 11:14:55 +02:00
parent 9e8fcb0184
commit b991f1e448
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -9,7 +9,7 @@ let
devices = mapAttrsToList (name: device: {
deviceID = device.id;
inherit (device) name addresses introducer;
inherit (device) name addresses introducer autoAcceptFolders;
}) cfg.devices;
folders = mapAttrsToList ( _: folder: {
@ -149,6 +149,15 @@ in {
'';
};
autoAcceptFolders = mkOption {
type = types.bool;
default = false;
description = ''
Automatically create or share folders that this device advertises at the default path.
See <link xlink:href="https://docs.syncthing.net/users/config.html?highlight=autoaccept#config-file-format"/>.
'';
};
};
}));
};