haccfiles/hosts/hainich/services/syncthing.nix

31 lines
623 B
Nix
Raw Normal View History

2021-01-27 10:13:36 +00:00
{ config, lib, pkgs, ... }:
{
2021-01-27 11:23:08 +00:00
services.syncthing = {
enable = true;
relay.enable = false;
openDefaultPorts = true;
declarative = {
devices = {
txsbcct = {
addresses = []; # empty = dynamic
id = "A6SRBZL-CP627PX-4QA55B7-QKJXOMO-UJDXQIV-77OK57V-RXO3CUQ-JIHX7AC";
};
};
2021-01-27 11:23:08 +00:00
folders = {
"/var/lib/syncthing/hacc" = {
id = "qt2ly-xvvvs";
devices = [ "txsbcct" ];
type = "receiveonly";
versioning = {
type = "simple";
params.keep = "10";
};
};
};
2021-01-27 11:23:08 +00:00
};
2021-01-27 11:23:08 +00:00
};
2021-01-27 10:13:36 +00:00
}