dotfiles/hosts/groceries/services/sync/default.nix
eriedaberrie ef322634fe Initial commit
Note: not the actual initial commit.

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-09-08 15:51:41 -07:00

19 lines
368 B
Nix

_:
{
imports = [
./syncthing.nix
./syncyomi.nix
];
services.nginx = {
virtualHosts."sync.eriedaberrie.me" = {
forceSSL = true;
useACMEHost = "eriedaberrie.me";
locations."/".return = "301 $scheme://eriedaberrie.me$request_uri";
};
};
security.acme.certs."eriedaberrie.me".extraDomainNames = [ "sync.eriedaberrie.me" ];
}