nixos-config/machines/orbi/media-syncthing.nix

50 lines
1 KiB
Nix
Raw Normal View History

2024-08-29 03:26:04 +02:00
{
config,
pkgs,
lib,
...
}:
{
2023-12-09 17:15:50 +01:00
healthchecks.http.syncthing-gui = {
url = config.services.syncthing.guiAddress;
expectedContent = "syncthing";
};
healthchecks.closed.public.ports.syncthing-gui = [ 8384 ];
2024-06-10 15:11:48 +02:00
#networking.firewall.allowedTCPPorts = [ 22000 ];
#networking.firewall.allowedUDPPorts = [ 22000 ];
2023-12-09 17:15:50 +01:00
services.syncthing = {
enable = true;
openDefaultPorts = false;
2024-04-17 10:00:17 +02:00
user = "media";
group = "media";
2023-12-09 17:15:50 +01:00
dataDir = "/media/syncthing/config";
configDir = "/media/syncthing/config";
overrideDevices = true;
overrideFolders = true;
settings.folders = {
2024-04-17 10:00:17 +02:00
audiobooks = {
2023-12-09 17:15:50 +01:00
enable = true;
2024-05-30 09:33:55 +02:00
path = "/media/syncthing/audiobooks";
2023-12-09 17:15:50 +01:00
};
2024-04-17 10:00:17 +02:00
lectures = {
2023-12-09 17:15:50 +01:00
enable = true;
2024-05-30 09:33:55 +02:00
path = "/media/syncthing/lectures";
};
flix = {
enable = true;
type = "receiveonly";
path = "/media/syncthing/flix";
2023-12-09 17:15:50 +01:00
};
2024-06-10 15:11:48 +02:00
share = {
enable = true;
type = "receiveonly";
path = "/media/syncthing/share";
};
2023-12-09 17:15:50 +01:00
};
};
}