From a9420a56a7e04581bfce848a27a577840f72d236 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Wed, 29 Apr 2020 01:56:35 +0300 Subject: [PATCH] Handle null in mailserver --- modules/mailserver.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {