stockholm/makefu/2configs/syncthing.nix

18 lines
363 B
Nix
Raw Normal View History

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