blob: afa27cd4518e64e4ef8105ba977673cae3839021 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
config,
lib,
pkgs,
...
}:
{
services.syncthing = {
enable = true;
# Open ports in the firewall for Syncthing. (NOTE: this will not open syncthing gui port)
openDefaultPorts = true;
key = "/run/secrets/syncthing/key.pem";
cert = "/run/secrets/syncthing/cert.pem";
guiAddress = "10.10.0.1:8384";
user = "audron";
group = "users";
settings = {
devices = {
"ffm0089" = {
id = "D5LYWQQ-GRV6QOK-RXYD32P-YNNFU3C-C7XOEY2-EWHCWSQ-3XC4CHG-EWMOMQZ";
};
"liduur" = {
id = "BPC2YAF-GLUWWL7-2RAVZAI-VSYBMII-LTGI3UA-JLF44VD-LLKSFEQ-ISDKIQB";
};
};
folders = {
".org" = {
path = "/home/audron/.org";
devices = [
"ffm0089"
"liduur"
];
};
};
};
};
secrets = {
syncthingKey = {
source = ../../secrets/syncthing/key.pem;
dest = config.services.syncthing.key;
};
syncthingCert = {
source = ../../secrets/syncthing/cert.pem;
dest = config.services.syncthing.cert;
};
};
}
|