summaryrefslogtreecommitdiff
path: root/hostnix/elmo/syncthing.nix
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2024-04-25 19:16:25 -0400
committerJoe Mou <dev@mou.fo>2024-04-26 16:30:33 -0400
commit53e31ee94bf74011a3497999d65f8451f59327f6 (patch)
treec07ef161e62f22cb396beeff1d32a64aff9908ff /hostnix/elmo/syncthing.nix
parentd7a2de8639c9d901884f6ac0477d87167811756b (diff)
elmo: move syncthing to /srv
Diffstat (limited to 'hostnix/elmo/syncthing.nix')
-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" = {