Syncthing: Difference between revisions
Jayman2000 (talk | contribs) →Disable default sync folder: Simplify code by using command-line argument instead of env var |
Syncthing removed the default folder concept after 2.0.0. |
||
Line 142: | Line 142: | ||
=== Disable default sync folder === | === Disable default sync folder === | ||
Syncthing creates a 'Sync' folder in your home directory every time it regenerates a configuration, even if your declarative configuration does not have this folder. You can disable that by using the <code>--no-default-folder</code> command-line option<ref>https://docs.syncthing.net/users/syncthing.html#cmdoption-no-default-folder</ref>: | Before version 2.0.0, Syncthing creates a 'Sync' folder in your home directory every time it regenerates a configuration, even if your declarative configuration does not have this folder. You can disable that by using the <code>--no-default-folder</code> command-line option<ref>https://docs.syncthing.net/users/syncthing.html#cmdoption-no-default-folder</ref>: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
services.syncthing.extraFlags = [ "--no-default-folder" ]; # Don't create default ~/Sync folder | services.syncthing.extraFlags = [ "--no-default-folder" ]; # Don't create default ~/Sync folder | ||
</syntaxhighlight> | </syntaxhighlight>The default folder concept is removed in Syncthing 2.0.0 and this flag is no longer available.<ref>https://github.com/syncthing/syncthing/pull/10068</ref> | ||
== Troubleshooting == | == Troubleshooting == |