aboutsummaryrefslogtreecommitdiff
path: root/modules/services/acme.nix
blob: 5ece2cf16a561fda13e290027edb5eefcfa0645c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{
  flake.modules.nixos.acme =
    { config, ... }:
    {
      services.nginx.virtualHosts."schererleander.de" = {
        forceSSL = true;
        sslCertificate = config.sops.secrets."cert_fullchain".path;
        sslCertificateKey = config.sops.secrets."cert_private".path;
        locations."/".return = "301 https://github.com/schererleander";
      };
    };
}