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

33 lines
740 B
Nix
Raw Normal View History

2023-12-09 17:15:50 +01:00
{ config, pkgs, lib, ... }: {
networking.firewall.allowedTCPPorts = [ 22000 ];
networking.firewall.allowedUDPPorts = [ 22000 ];
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
};
};
};
}