From f41a13fc1b8e46ddb5be2ab4da501509bf8fb4e9 Mon Sep 17 00:00:00 2001 From: Cat Date: Tue, 2 Jul 2024 13:49:03 +0200 Subject: [PATCH] nixos/syncthing: implement folder type (#308832) * Syncthing: implemented folder type * Syncthing: fix syntax (via @johnhamelink ) This commit should be rebased/squashed into the previous one if ofborg cleares it! Co-authored-by: John Hamelink --------- Co-authored-by: John Hamelink (cherry picked from commit ed1b6699c0bdb15ccc62f6e57d7baca984f377c2) --- nixos/modules/services/networking/syncthing.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index 45503ef89aaa..94ff838b50e0 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -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 . + ''; + }; + devices = mkOption { type = types.listOf types.str; default = [];