diff options
author | Jakub Sokołowski <jakub@status.im> | 2021-08-29 11:14:55 +0200 |
---|---|---|
committer | Jakub Sokołowski <jakub@status.im> | 2021-08-29 12:22:44 +0200 |
commit | b991f1e4483a2356b351d97dcaafe7bfc9822331 (patch) | |
tree | 0b29a0b0c5ab5bd81d9d37539984267b7c9585b2 /nixos/modules/services/networking/syncthing.nix | |
parent | 9e8fcb0184170a97b4d0a933783bd7c83aff2ab2 (diff) | |
download | nixpkgs-b991f1e4483a2356b351d97dcaafe7bfc9822331.tar nixpkgs-b991f1e4483a2356b351d97dcaafe7bfc9822331.tar.gz nixpkgs-b991f1e4483a2356b351d97dcaafe7bfc9822331.tar.bz2 nixpkgs-b991f1e4483a2356b351d97dcaafe7bfc9822331.tar.lz nixpkgs-b991f1e4483a2356b351d97dcaafe7bfc9822331.tar.xz nixpkgs-b991f1e4483a2356b351d97dcaafe7bfc9822331.tar.zst nixpkgs-b991f1e4483a2356b351d97dcaafe7bfc9822331.zip |
syncthing: add autoAcceptFolders to devices config
Signed-off-by: Jakub Sokołowski <jakub@status.im>
Diffstat (limited to 'nixos/modules/services/networking/syncthing.nix')
-rw-r--r-- | nixos/modules/services/networking/syncthing.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index 2e92fe51e90..2efb7a9ed93 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -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"/>. + ''; + }; + }; })); }; |