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