Unverified Commit ed1b6699 authored by Cat's avatar Cat Committed by GitHub
Browse files

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: default avatarJohn Hamelink <me@johnhame.link>

---------

Co-authored-by: default avatarJohn Hamelink <me@johnhame.link>
parent 87ceeab2
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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 = [];