Syncthing: Difference between revisions
Cleanup |
m Missing small words |
||
| Line 1: | Line 1: | ||
[https://syncthing.net Syncthing] is a decentralized file synchronization service. You can use it to safely sync all files in a folder between different desktops/servers. | [https://syncthing.net Syncthing] is a decentralized file synchronization service. You can use it to safely sync all files in a folder between different desktops/servers. | ||
== Setup == | == Setup == | ||
To enable Syncthing, add following to your system configuration: | To enable Syncthing, add the following to your system configuration: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
| Line 14: | Line 14: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
You can confirm Syncthing runs by visiting http://127.0.0.1:8384/ and | You can confirm Syncthing runs by visiting http://127.0.0.1:8384/ and authenticating using the credentials above. | ||
== Configuration == | == Configuration == | ||
=== Sync folders and trusted remote hosts === | === Sync folders and trusted remote hosts === | ||
The following configuration will trust the remote hosts <code>device1</code> and <code>device2</code> by adding their <code>id</code>s. The shares <code>Documents</code> and <code>Example</code> are added to the local node, defined by their local file paths and list of allowed devices.<syntaxhighlight lang="nix"> | |||
services.syncthing = { | services.syncthing = { | ||
settings = { | settings = { | ||