security.pam.loginLimits
Define resource limits that should apply to users or groups. Each item in the list should be an attribute set with a domain, type, item, and value attribute. The syntax and semantics of these attributes must be that described in limits.conf(5).
Note that these limits do not apply to systemd services,
whose limits can be changed via systemd.settings.Manager
instead.
- Type
list of (submodule)- Default
[ ]- Example
[ { domain = "ftp"; item = "nproc"; type = "hard"; value = "0"; } { domain = "@student"; item = "maxlogins"; type = "-"; value = "4"; } ]- Declared
- <nixpkgs/nixos/modules/security/pam.nix>