30 lines
565 B
Nix
30 lines
565 B
Nix
{ config, lib, pkgs, ... }:
|
|
{
|
|
services.syncthing = {
|
|
enable = true;
|
|
relay.enable = false;
|
|
openDefaultPorts = true;
|
|
declarative = {
|
|
devices = {
|
|
txsbcct = {
|
|
addresses = []; # empty = dynamic
|
|
id = "A6SRBZL-CP627PX-4QA55B7-QKJXOMO-UJDXQIV-77OK57V-RXO3CUQ-JIHX7AC";
|
|
};
|
|
};
|
|
|
|
folders = {
|
|
"/var/lib/syncthing/hacc" = {
|
|
id = "qt2ly-xvvvs";
|
|
devices = [ "txsbcct" ];
|
|
type = "receiveonly";
|
|
versioning = {
|
|
type = "simple";
|
|
params.keep = "10";
|
|
};
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
}
|