nixos-config/mastus/letsencrypt.nix

32 lines
626 B
Nix
Raw Normal View History

2015-12-05 12:41:20 +00:00
{ config, pkgs, ... }:
{
2016-06-17 05:48:07 +00:00
security.acme.certs = {
"gebner.org" = {
2019-10-31 21:44:25 +00:00
webroot = "/var/lib/acme/acme-challenge";
2016-06-17 05:48:07 +00:00
email = "gebner@gebner.org";
2020-10-30 18:10:56 +00:00
extraDomainNames = [
2020-10-30 18:06:17 +00:00
"git.gebner.org"
"mail.gebner.org"
"gebner.org"
"www.gebner.org"
"gabrielebner.at"
"www.gabrielebner.at"
"2b7e.org"
"www.2b7e.org"
];
2015-12-05 12:41:20 +00:00
2016-06-17 05:48:07 +00:00
postRun = ''
systemctl reload nginx
2016-06-17 05:49:07 +00:00
systemctl reload postfix
2016-06-18 07:28:16 +00:00
(${config.systemd.services.dovecotSslKey.script})
2016-06-17 05:48:07 +00:00
systemctl reload dovecot2
'';
2015-12-05 12:41:20 +00:00
};
};
2016-06-17 05:48:07 +00:00
2020-06-13 11:08:34 +00:00
security.acme.acceptTerms = true;
2015-12-05 12:41:20 +00:00
}