cfg/host/roam/syncthing.nix
2026-04-04 17:39:41 +02:00

26 lines
478 B
Nix

{ ... }:
let
guiAddress = "127.0.0.1:8384";
in
{
services.syncthing = {
enable = true;
inherit guiAddress;
settings.gui.insecureSkipHostcheck = true;
settings.folders.sync = {
path = "/data/sync/documents-hd";
type = "receiveencrypted";
};
};
services.nginx = {
privateVirtualHosts."syncthing.roam.lan" = {
locations."/" = {
proxyPass = "http://${guiAddress}/";
proxyWebsockets = true;
};
};
};
}