nixos-config/mastus/letsencrypt.nix

30 lines
638 B
Nix

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