dotfiles/provision/hosts/torus/syncthing.nix

25 lines
697 B
Nix
Raw Normal View History

{ config, lib, pkgs, user, ... }:
{
2023-11-09 16:12:34 -08:00
networking.firewall.allowedTCPPorts = [ 8384 22000 ];
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
environment.systemPackages = with pkgs; [
syncthing # File sync program for multiple devices in real-time.
];
2023-11-09 16:12:34 -08:00
services.syncthing = {
enable = true;
user = "${user}";
2023-12-18 20:04:24 -08:00
dataDir = "/home/${user}/.local/share/syncthing";
configDir = "/home/${user}/.config/syncthing";
2023-11-09 16:12:34 -08:00
guiAddress = "0.0.0.0:8384";
overrideDevices = true;
overrideFolders = true;
settings.devices = {
2023-11-09 16:12:34 -08:00
"kestrel" = { id = "TY6I6UK-YWXZYB4-7DKSB5Y-6ZBGE6U-T5WNJK4-KPLTXP7-ZTZQPXU-LX4HPQZ"; };
};
settings.folders = {
};
};
}