18 lines
359 B
Nix
18 lines
359 B
Nix
{ config, ... }:
|
|
|
|
with pkgs.stockholm.lib; {
|
|
services.syncthing = {
|
|
enable = true;
|
|
openDefaultPorts = 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"
|
|
];
|
|
}
|