2018-09-17 01:10:36 +02:00
|
|
|
{ config, ... }:
|
2017-04-17 13:08:36 +02:00
|
|
|
|
|
|
|
with import <stockholm/lib>; {
|
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
|
|
|
openDefaultPorts = true;
|
|
|
|
group = "download";
|
|
|
|
};
|
|
|
|
users.extraGroups.download.gid = genid "download";
|
2018-09-17 01:10:36 +02:00
|
|
|
state = map (x: config.services.syncthing.dataDir + "/" + x) [
|
|
|
|
"key.pem"
|
|
|
|
"cert.pem"
|
|
|
|
"config.xml"
|
|
|
|
"https-cert.pem"
|
|
|
|
"https-key.pem"
|
|
|
|
];
|
2017-04-17 13:08:36 +02:00
|
|
|
}
|