From 8b8539196df606f7aeaf8f0bc29c0aecf2b99803 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Wed, 29 May 2024 23:19:37 +0200 Subject: [PATCH] Move syncthing config dir as well --- hosts/nixos/common/optional/services/syncthing.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/nixos/common/optional/services/syncthing.nix b/hosts/nixos/common/optional/services/syncthing.nix index ba5a2e5..8e0a191 100644 --- a/hosts/nixos/common/optional/services/syncthing.nix +++ b/hosts/nixos/common/optional/services/syncthing.nix @@ -12,7 +12,7 @@ in enable = true; openDefaultPorts = true; - configDir = "/persist/state/${config.users.users.pilot.home}/syncthing/.config/syncthing"; + configDir = "${dataDir}/config"; overrideDevices = true; overrideFolders = true; @@ -34,5 +34,5 @@ in systemd.services.syncthing.serviceConfig.RuntimeMaxSec = "1d"; # I'm not sure this is needed anymore, I just know I got some ownership errors at some point. - systemd.tmpfiles.rules = [ "d ${dataDir} - ${user} ${group} -" ]; + systemd.tmpfiles.rules = [ "d ${dataDir} - ${user} ${group}" ]; }