nixos/nixos/newton/syncthing.nix
2022-06-26 15:34:21 +02:00

29 lines
634 B
Nix

{ config, ... }:
{
sops.secrets.syncthing_key = {};
sops.secrets.syncthing_cert = {};
services.syncthing = {
enable = true;
openDefaultPorts = true;
dataDir = "/srv/data";
key = config.sops.secrets.syncthing_key.path;
cert = config.sops.secrets.syncthing_cert.path;
extraOptions = {
options = {
localAnnounceEnabled = false;
};
};
devices = {
"thinkman" = {
id = "KXSCPX3-JCCFZM4-S2LQZZL-3AM6WRL-IPNWVG2-IB5FEDJ-YYFUIRR-VMDO3AL";
};
};
folders = {
"Music" = {
path = "music";
devices = [ "thinkman" ];
};
};
};
}