From dd5937d9c4a3fcd687b4b53bbe0f3b1596ee667f Mon Sep 17 00:00:00 2001 From: Payas Relekar Date: Fri, 1 Dec 2023 14:57:56 +0530 Subject: [PATCH] syncthing: Fix dataDir --- modules/common-syncthing.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/common-syncthing.nix b/modules/common-syncthing.nix index f34563a..1c3677b 100644 --- a/modules/common-syncthing.nix +++ b/modules/common-syncthing.nix @@ -1,4 +1,4 @@ -{ ... }: +{ config, ... }: let payas = "payas"; in @@ -13,7 +13,8 @@ in openDefaultPorts = true; user = payas; group = payas; - configDir = "/home/${payas}/.config/syncthing/"; + dataDir = "/home/${payas}"; + configDir = config.services.syncthing.dataDir + "/.config/syncthing"; # Hosts can opt-out of folders with enable = false # When adding new folders, you may want to create them first manually for permissions