puter/hosts/abacus/syncthing.nix

19 lines
407 B
Nix
Raw Normal View History

2024-08-18 21:15:16 +00:00
{config, ...}: let
inherit (config.networking) domain;
virtualHostName = "sync.${domain}";
in {
services.syncthing = {
enable = true;
systemService = true;
openDefaultPorts = true;
};
services.nginx.virtualHosts.${virtualHostName} = {
enableACME = true;
forceSSL = true;
quic = true;
locations."/".proxyPass = "http://${config.services.syncthing.guiAddress}";
};
}