mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
25 lines
697 B
Nix
25 lines
697 B
Nix
{ config, lib, pkgs, user, ... }:
|
|
{
|
|
networking.firewall.allowedTCPPorts = [ 8384 22000 ];
|
|
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
syncthing # File sync program for multiple devices in real-time.
|
|
];
|
|
|
|
services.syncthing = {
|
|
enable = true;
|
|
user = "${user}";
|
|
dataDir = "/home/${user}/.local/share/syncthing";
|
|
configDir = "/home/${user}/.config/syncthing";
|
|
guiAddress = "0.0.0.0:8384";
|
|
overrideDevices = true;
|
|
overrideFolders = true;
|
|
settings.devices = {
|
|
"kestrel" = { id = "TY6I6UK-YWXZYB4-7DKSB5Y-6ZBGE6U-T5WNJK4-KPLTXP7-ZTZQPXU-LX4HPQZ"; };
|
|
};
|
|
settings.folders = {
|
|
};
|
|
};
|
|
}
|