Syncthing: Difference between revisions

Onny (talk | contribs)
m Cleanup
Onny (talk | contribs)
Cleanup
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 ==
Syncthing is available as a standalone package: <code>nix-env -iA nixos.syncthing</code>
To enable Syncthing, add following to your system configuration:


It can also be enabled as a service. Example:
<syntaxhighlight lang="nix">
services.syncthing.enable = true;
</syntaxhighlight>


<syntaxHighlight lang="nix">
You can confirm Syncthing runs by visiting http://127.0.0.1:8384/ .
services = {
    syncthing = {
        enable = true;
        user = "myusername";
        dataDir = "/home/myusername/Documents";    # Default folder for new synced folders
        configDir = "/home/myusername/Documents/.config/syncthing";  # Folder for Syncthing's settings and keys
    };
};
</syntaxHighlight>


You can confirm Syncthing runs by visiting http://127.0.0.1:8384/ and following the official Getting Started guide: https://docs.syncthing.net/intro/getting-started.html
Follow the official ''[https://docs.syncthing.net/intro/getting-started.html Getting Started]'' guide to get started.


== Configuration ==
== Configuration ==