mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-05-11 13:10:49 +05:00
mail-server/dovecot: check if quota is non-null instead of string
This commit is contained in:
parent
7091fad860
commit
6f3ece9181
@ -125,9 +125,7 @@ let
|
||||
cat <<EOF > ${userdbFile}
|
||||
${lib.concatStringsSep "\n" (lib.mapAttrsToList (name: value:
|
||||
"${name}:::::::"
|
||||
+ (if lib.isString value.quota
|
||||
then "userdb_quota_rule=*:storage=${value.quota}"
|
||||
else "")
|
||||
+ lib.optionalString (value.quota != null) "userdb_quota_rule=*:storage=${value.quota}"
|
||||
) cfg.loginAccounts)}
|
||||
EOF
|
||||
'';
|
||||
|
Loading…
x
Reference in New Issue
Block a user