diff options
Diffstat (limited to 'modules/services/syncthing')
-rw-r--r-- | modules/services/syncthing/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/services/syncthing/default.nix b/modules/services/syncthing/default.nix index bbd4fb9..ea8c4d6 100644 --- a/modules/services/syncthing/default.nix +++ b/modules/services/syncthing/default.nix @@ -1,5 +1,7 @@ { config, pkgs, lib, ... }: -let cfg = config.my.services.syncthing; +let + cfg = config.my.services.syncthing; + secrets = config.age.secrets; in { options.my.services.syncthing = with lib; { enable = mkEnableOption "syncthing service"; @@ -9,9 +11,11 @@ in { services.syncthing = { enable = true; openDefaultPorts = true; - user = users.users.fcuny; + user = "fcuny"; group = "users"; - dataDir = "${users.users.fcuny.home}/.syncthing"; + dataDir = "/home/fcuny/.local/state/syncthing"; + cert = secrets."syncthing/cert".path; + key = secrets."syncthing/key".path; }; }; } |