foobar
This commit is contained in:
parent
c90e09d125
commit
1e75d07d56
3 changed files with 22 additions and 1 deletions
|
|
@ -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" ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue