diff --git a/lib/fudo/ldap.nix b/lib/fudo/ldap.nix index 5968d76..194fc29 100644 --- a/lib/fudo/ldap.nix +++ b/lib/fudo/ldap.nix @@ -39,7 +39,7 @@ let selby = "selby.ca"; informis = "informis.land"; }; - email = if (hasAttr email opts) then + email = if (opts.email != null) then email else "${name}@${domains."${opts.primary-group}"}";