nixos-config/mastus/letsencrypt.nix
2020-10-30 19:10:56 +01:00

32 lines
626 B
Nix

{ config, pkgs, ... }:
{
security.acme.certs = {
"gebner.org" = {
webroot = "/var/lib/acme/acme-challenge";
email = "gebner@gebner.org";
extraDomainNames = [
"git.gebner.org"
"mail.gebner.org"
"gebner.org"
"www.gebner.org"
"gabrielebner.at"
"www.gabrielebner.at"
"2b7e.org"
"www.2b7e.org"
];
postRun = ''
systemctl reload nginx
systemctl reload postfix
(${config.systemd.services.dovecotSslKey.script})
systemctl reload dovecot2
'';
};
};
security.acme.acceptTerms = true;
}