mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-01-26 10:00:34 +05:00
Make LMTP memory limit configurable
This commit is contained in:
parent
63209b1def
commit
4a5eb4baea
@ -460,6 +460,14 @@ in
|
||||
'';
|
||||
};
|
||||
|
||||
lmtpMemoryLimit = mkOption {
|
||||
type = types.int;
|
||||
default = 256;
|
||||
description = ''
|
||||
The memory limit for the LMTP service, in megabytes.
|
||||
'';
|
||||
};
|
||||
|
||||
extraVirtualAliases = mkOption {
|
||||
type = let
|
||||
loginAccount = mkOptionType {
|
||||
|
@ -291,6 +291,7 @@ in
|
||||
mode = 0600
|
||||
user = ${postfixCfg.user}
|
||||
}
|
||||
vsz_limit = ${builtins.toString cfg.lmtpMemoryLimit} MB
|
||||
}
|
||||
|
||||
recipient_delimiter = ${cfg.recipientDelimiter}
|
||||
|
Loading…
Reference in New Issue
Block a user