diff --git a/default.nix b/default.nix index 60dbceb..e0dae37 100644 --- a/default.nix +++ b/default.nix @@ -469,7 +469,6 @@ in type = let loginAccount = mkOptionType { name = "Login Account"; - check = (account: builtins.elem account (builtins.attrNames cfg.loginAccounts)); }; in with types; attrsOf (either loginAccount (nonEmptyListOf loginAccount)); example = { diff --git a/mail-server/assertions.nix b/mail-server/assertions.nix index 0e5b15b..951eed2 100644 --- a/mail-server/assertions.nix +++ b/mail-server/assertions.nix @@ -5,10 +5,6 @@ assertion = config.mailserver.loginAccounts == {}; message = "When the LDAP support is enable (mailserver.ldap.enable = true), it is not possible to define mailserver.loginAccounts"; } - { - assertion = config.mailserver.extraVirtualAliases == {}; - message = "When the LDAP support is enable (mailserver.ldap.enable = true), it is not possible to define mailserver.extraVirtualAliases"; - } { assertion = config.mailserver.forwards == {}; message = "When the LDAP support is enable (mailserver.ldap.enable = true), it is not possible to define mailserver.forwards";