49 lines
1 KiB
Nix
49 lines
1 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
|
|
healthchecks.http.syncthing-gui = {
|
|
url = config.services.syncthing.guiAddress;
|
|
expectedContent = "syncthing";
|
|
};
|
|
healthchecks.closed.public.ports.syncthing-gui = [ 8384 ];
|
|
|
|
#networking.firewall.allowedTCPPorts = [ 22000 ];
|
|
#networking.firewall.allowedUDPPorts = [ 22000 ];
|
|
|
|
services.syncthing = {
|
|
enable = true;
|
|
openDefaultPorts = false;
|
|
user = "media";
|
|
group = "media";
|
|
dataDir = "/media/syncthing/config";
|
|
configDir = "/media/syncthing/config";
|
|
overrideDevices = true;
|
|
overrideFolders = true;
|
|
settings.folders = {
|
|
audiobooks = {
|
|
enable = true;
|
|
path = "/media/syncthing/audiobooks";
|
|
};
|
|
lectures = {
|
|
enable = true;
|
|
path = "/media/syncthing/lectures";
|
|
};
|
|
flix = {
|
|
enable = true;
|
|
type = "receiveonly";
|
|
path = "/media/syncthing/flix";
|
|
};
|
|
share = {
|
|
enable = true;
|
|
type = "receiveonly";
|
|
path = "/media/syncthing/share";
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|