[Nix-dev] ulimit

Bjørn Forsman bjorn.forsman at gmail.com
Tue Jan 6 07:55:59 CET 2015


On 6 January 2015 at 04:13, peter.romfeld.hk at gmail.com
<peter.romfeld.hk at gmail.com> wrote:
> Hey,
>
> i did search through the options but could not find anything. did i miss
> something? i also cant find /etc/security/limits.d/ on my system
>
> i want to set the ulimits in nix style.
> for example ejabberd user open files 65536
>
> security.ulimits = {
>   ejabberd = {
>     soft = {
>       nofile = 65536;
>       nproc = 65536;
>     };
>     hard = {
>       nofile = 65536;
>       nproc = 65536;
>     };
>   };
> };

There is a security.pam.loginLimits option. Does that suit your need?

Best regards,
Bjørn Forsman


More information about the nix-dev mailing list