Syncthing: Difference between revisions
imported>Srid home-manager |
imported>Thu Add link to the Getting Started guide. |
||
Line 1: | Line 1: | ||
Syncthing is available as a standalone package: | |||
<nowiki>nix-env -iA nixos.syncthing</nowiki> | <nowiki>nix-env -iA nixos.syncthing</nowiki> | ||
It can also be enabled as a service. You'll typically want to | It can also be enabled as a service. You'll typically want to configure the user and the path to the configuration directory, as with the default | ||
values ("syncthing" for the user, "/var/lib/syncthing" for the dir) you won't be able to access the files: | values ("syncthing" for the user, "/var/lib/syncthing" for the dir) you won't be able to access the files: | ||
Line 17: | Line 17: | ||
</nowiki> | </nowiki> | ||
You can confirm Syncthing runs by visiting http://127.0.0.1:8384/ and follow the offical Getting Started guide: https://docs.syncthing.net/intro/getting-started.html | |||
== home-manager service == | == home-manager service == | ||
https://github.com/nix-community/home-manager/blob/master/modules/services/syncthing.nix | https://github.com/nix-community/home-manager/blob/master/modules/services/syncthing.nix |
Revision as of 11:53, 7 October 2020
Syncthing is available as a standalone package:
nix-env -iA nixos.syncthing
It can also be enabled as a service. You'll typically want to configure the user and the path to the configuration directory, as with the default values ("syncthing" for the user, "/var/lib/syncthing" for the dir) you won't be able to access the files:
services = { syncthing = { enable = true; user = "myusername"; dataDir = "/home/myusername/Documents"; configDir = "/home/myusername/Documents/.config/syncthing"; }; };
You can confirm Syncthing runs by visiting http://127.0.0.1:8384/ and follow the offical Getting Started guide: https://docs.syncthing.net/intro/getting-started.html
home-manager service
https://github.com/nix-community/home-manager/blob/master/modules/services/syncthing.nix