More nginx config dehardcoding. Did some sshd hardening.

This commit is contained in:
Kevin Baensch 2019-03-24 22:55:17 +01:00
parent 66ca5839e5
commit e745bdea3d
5 changed files with 15 additions and 7 deletions

View file

@ -5,10 +5,10 @@ with lib;
mkIf (elem "mailserver" config.machine.services) {
mailserver = rec {
enable = true;
fqdn = "mail.ophanim.de";
domains = [ "ophanim.de" ];
fqdn = "mail.${config.machine.domain}";
domains = [ config.machine.domain ];
loginAccounts = {
"derped@ophanim.de" = {
"derped@${config.machine.domain}" = {
hashedPassword = (builtins.readFile /secret/derped.mail);
};
};