ma syncthing: track syncthing state

This commit is contained in:
makefu 2018-09-17 01:10:36 +02:00
parent 14cb17d0ce
commit 8025095062
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -1,11 +1,17 @@
{...}:
{ config, ... }:
with import <stockholm/lib>; {
services.syncthing = {
enable = true;
openDefaultPorts = true;
useInotify = true;
group = "download";
};
users.extraGroups.download.gid = genid "download";
state = map (x: config.services.syncthing.dataDir + "/" + x) [
"key.pem"
"cert.pem"
"config.xml"
"https-cert.pem"
"https-key.pem"
];
}