nix-stuff/roles/server/syncthing.nix

19 lines
422 B
Nix
Executable file

{ config, ... }:
{
age.secrets = {
syncthingKey.file = ../../secrets/syncthing/key;
syncthingCert.file = ../../secrets/syncthing/cert;
};
services.syncthing = {
enable = true;
key = config.age.secrets.syncthingKey.path;
cert = config.age.secrets.syncthingCert.path;
guiAddress = "0.0.0.0:8384";
folders = {
"passwords" = {
path = "${config.services.syncthing.dataDir}/passwords";
};
};
};
}