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

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-08-18 11:53:09 -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" ];
}