ma syncthing: track syncthing state
This commit is contained in:
parent
14cb17d0ce
commit
8025095062
@ -1,11 +1,17 @@
|
|||||||
{...}:
|
{ config, ... }:
|
||||||
|
|
||||||
with import <stockholm/lib>; {
|
with import <stockholm/lib>; {
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openDefaultPorts = true;
|
openDefaultPorts = true;
|
||||||
useInotify = true;
|
|
||||||
group = "download";
|
group = "download";
|
||||||
};
|
};
|
||||||
users.extraGroups.download.gid = genid "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"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user