39 lines
770 B
Nix
39 lines
770 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
services.syncthing = {
|
|
enable = true;
|
|
guiAddress = "localhost:8384";
|
|
user = "synchronous";
|
|
group = "users";
|
|
dataDir = "/home/synchronous";
|
|
# user = "synchronous";
|
|
# group = "syncthing";
|
|
openDefaultPorts = true;
|
|
|
|
settings = {
|
|
devices = {
|
|
cluster = {
|
|
id = "WLJQSWD-IGXNYPW-2OMCGM4-N2M5MSN-6Z6TRDA-VLZGWVC-5PJTO5U-BPFFCAU";
|
|
addresses = [
|
|
"tcp://100.117.155.3:22000"
|
|
"dynamic"
|
|
];
|
|
};
|
|
};
|
|
folders = {
|
|
notes = {
|
|
id = "journal";
|
|
label = "journal";
|
|
path = "/home/synchronous/journal";
|
|
type = "sendreceive";
|
|
|
|
devices = ["cluster"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|