Merge branch 'dev/check-quota-is-null' into 'master'

mail-server/dovecot: check if quota is non-null instead of string

See merge request simple-nixos-mailserver/nixos-mailserver!362
This commit is contained in:
Leon Schuermann 2025-03-15 13:16:35 +00:00
commit ab0c6367e0

View File

@ -125,7 +125,7 @@ let
cat <<EOF > ${userdbFile}
${lib.concatStringsSep "\n" (lib.mapAttrsToList (name: value:
"${name}:::::::"
+ (if lib.isString value.quota
+ (if value.quota != null
then "userdb_quota_rule=*:storage=${value.quota}"
else "")
) cfg.loginAccounts)}