mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-05-12 05:30:51 +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}
|
cat <<EOF > ${userdbFile}
|
||||||
${lib.concatStringsSep "\n" (lib.mapAttrsToList (name: value:
|
${lib.concatStringsSep "\n" (lib.mapAttrsToList (name: value:
|
||||||
"${name}:::::::"
|
"${name}:::::::"
|
||||||
+ (if lib.isString value.quota
|
+ lib.optionalString (value.quota != null) "userdb_quota_rule=*:storage=${value.quota}"
|
||||||
then "userdb_quota_rule=*:storage=${value.quota}"
|
|
||||||
else "")
|
|
||||||
) cfg.loginAccounts)}
|
) cfg.loginAccounts)}
|
||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user