Syncthing: Difference between revisions
attached to Category:Application. Introduction added. |
m Add note about disabling default sync folder creation |
||
| Line 19: | Line 19: | ||
== Declarative configuration == | == Declarative configuration == | ||
You can declaratively set your Syncthing folders by using the <code>services.syncthing.devices</code> and <code>services.syncthing.folders</code> options: | You can declaratively set your Syncthing folders by using the <code>services.syncthing.devices</code> and <code>services.syncthing.folders</code> options: | ||
| Line 73: | Line 72: | ||
}; | }; | ||
</syntaxHighlight> | </syntaxHighlight> | ||
== 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 setting the STNODEFAULTFOLDER environment variable: | |||
<code>systemd'''.'''services'''.'''syncthing'''.'''environment'''.'''STNODEFAULTFOLDER = "true"''';''' ''# Don't create default ~/Sync folder''</code> | |||
== Home-manager service == | == Home-manager service == | ||