about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMoritz 'e1mo' Fromm <git@e1mo.de>2022-08-09 14:50:55 +0200
committerMoritz 'e1mo' Fromm <git@e1mo.de>2022-08-09 15:03:14 +0200
commit79ae88a1002db5384bc9ad2e8708c77554289f05 (patch)
tree2e5721fe83a9b1de7d7c2612f34ce2cab6bf5c4b /nixos
parent65f39b913d0910907ea22be29f108402924644c2 (diff)
downloadnixlib-79ae88a1002db5384bc9ad2e8708c77554289f05.tar
nixlib-79ae88a1002db5384bc9ad2e8708c77554289f05.tar.gz
nixlib-79ae88a1002db5384bc9ad2e8708c77554289f05.tar.bz2
nixlib-79ae88a1002db5384bc9ad2e8708c77554289f05.tar.lz
nixlib-79ae88a1002db5384bc9ad2e8708c77554289f05.tar.xz
nixlib-79ae88a1002db5384bc9ad2e8708c77554289f05.tar.zst
nixlib-79ae88a1002db5384bc9ad2e8708c77554289f05.zip
nixos/syncthing: Add receiveencrypted folder type
This folder type is available in syncthing, but could not be set in
NixOS.
See <https://docs.syncthing.net/users/untrusted.html> for reference.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/syncthing.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix
index 373fd03223d6..5242d3a40350 100644
--- a/nixos/modules/services/networking/syncthing.nix
+++ b/nixos/modules/services/networking/syncthing.nix
@@ -317,11 +317,12 @@ in {
             };
 
             type = mkOption {
-              type = types.enum [ "sendreceive" "sendonly" "receiveonly" ];
+              type = types.enum [ "sendreceive" "sendonly" "receiveonly" "receiveencrypted" ];
               default = "sendreceive";
               description = lib.mdDoc ''
                 Whether to only send changes for this folder, only receive them
-                or both.
+                or both. `receiveencrypted` can be used for untrusted devices. See
+                <https://docs.syncthing.net/users/untrusted.html> for reference.
               '';
             };