niksos/hosts/chmura/syncthing.nix

24 lines
521 B
Nix

{
config,
pkgs,
inputs,
...
}: {
services.syncthing = {
enable = true;
user = "syncthing";
dataDir = "/var/lib/syncthing";
overrideDevices = true;
overrideFolders = true;
};
services.caddy = {
enable = true;
virtualHosts."s.jacekpoz.pl".extraConfig = ''
reverse_proxy * localhost:8384
'';
};
networking.firewall.allowedTCPPorts = [ 8384 22000 ];
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
}