diff --git a/modules/mailserver.nix b/modules/mailserver.nix index 81fb2c9..f6f58e2 100644 --- a/modules/mailserver.nix +++ b/modules/mailserver.nix @@ -71,7 +71,7 @@ in { ''; }; mailserver = { - enable = true; + enable = ! isNull config.secrets.mail.host; fqdn = config.secrets.mail.host; domains = [ config.secrets.mail.host ]; loginAccounts = {