summaryrefslogtreecommitdiff
path: root/hostnix/elmo
diff options
context:
space:
mode:
Diffstat (limited to 'hostnix/elmo')
-rw-r--r--hostnix/elmo/syncthing.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/hostnix/elmo/syncthing.nix b/hostnix/elmo/syncthing.nix
index 30e3569..63b540e 100644
--- a/hostnix/elmo/syncthing.nix
+++ b/hostnix/elmo/syncthing.nix
@@ -11,7 +11,7 @@ let
in
{
systemd.tmpfiles.rules = [
- "d /var/lib/syncthing 0775 syncthing syncthing"
+ "d /srv/syncthing 0770 syncthing syncthing" # defaults to 0700
];
systemd.services.syncthing = {
@@ -23,6 +23,7 @@ in
openDefaultPorts = true;
# Syncthing supports named sockets but the NixOS module assumes network.
guiAddress = "[::1]:8384";
+ dataDir = "/srv/syncthing";
settings = {
devices = {
"Asus Nexus 7" = {