summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorVictor Nawothnig <dminuoso+git@icloud.com>2021-08-19 11:59:43 +0200
committerVictor Nawothnig <dminuoso+git@icloud.com>2021-08-19 11:59:43 +0200
commit10933c5ccfafa8f38bfbe9e3b9b5c856f9b90cbe (patch)
tree411ed7000528b68bd74231550e3a010bf491d487 /nixos/modules/services
parent3fbb3d909196317505607d3929077a3d061cee0b (diff)
downloadnixpkgs-10933c5ccfafa8f38bfbe9e3b9b5c856f9b90cbe.tar
nixpkgs-10933c5ccfafa8f38bfbe9e3b9b5c856f9b90cbe.tar.gz
nixpkgs-10933c5ccfafa8f38bfbe9e3b9b5c856f9b90cbe.tar.bz2
nixpkgs-10933c5ccfafa8f38bfbe9e3b9b5c856f9b90cbe.tar.lz
nixpkgs-10933c5ccfafa8f38bfbe9e3b9b5c856f9b90cbe.tar.xz
nixpkgs-10933c5ccfafa8f38bfbe9e3b9b5c856f9b90cbe.tar.zst
nixpkgs-10933c5ccfafa8f38bfbe9e3b9b5c856f9b90cbe.zip
nixos/dovecot: Allow any or no protocol
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/mail/dovecot.nix4
1 files changed, 0 insertions, 4 deletions
diff --git a/nixos/modules/services/mail/dovecot.nix b/nixos/modules/services/mail/dovecot.nix
index 1ccfb357750..bac437c752d 100644
--- a/nixos/modules/services/mail/dovecot.nix
+++ b/nixos/modules/services/mail/dovecot.nix
@@ -468,10 +468,6 @@ in
 
     assertions = [
       {
-        assertion = intersectLists cfg.protocols [ "pop3" "imap" ] != [];
-        message = "dovecot needs at least one of the IMAP or POP3 listeners enabled";
-      }
-      {
         assertion = (cfg.sslServerCert == null) == (cfg.sslServerKey == null)
         && (cfg.sslCACert != null -> !(cfg.sslServerCert == null || cfg.sslServerKey == null));
         message = "dovecot needs both sslServerCert and sslServerKey defined for working crypto";