This commit is contained in:
Thomas Preisner 2024-12-28 01:42:00 +01:00
parent c90e09d125
commit 1e75d07d56
3 changed files with 22 additions and 1 deletions

View file

@ -19,7 +19,13 @@ with (import ./common.nix {inherit config;}); let
systemUsers = lib.filterAttrs (user: value: value.isSystemUser) cfg.accounts;
normalUsers = lib.filterAttrs (user: value: !value.isSystemUser) cfg.accounts;
genUserdbEntry = user: value: "${user}:::::::";
genUserdbEntry = user: value:
"${user}:::::::"
+ (
if lib.isString value.quota
then "userdb_quota_rule=*:storage=${value.quota}"
else ""
);
genPasswdEntry = user: value: "${user}:${"$(head -n 1 ${value.hashedPasswordFile})"}::::::";
genAuthDbsScript = pkgs.writeScript "generate-dovecot-auth-dbs" ''