nixos-config/machines/orbi/media-syncthing.nix
Ingolf Wagner 7a6510a4e6
Some checks are pending
Build all NixOS Configurations / nix build (push) Waiting to run
nix fmt
2024-08-29 08:26:04 +07:00

44 lines
869 B
Nix

{
config,
pkgs,
lib,
...
}:
{
#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";
};
};
};
}