infra/nixos/modules/system/limits.nix

14 lines
261 B
Nix
Raw Normal View History

2024-10-13 15:16:39 -05:00
{...}: {
boot.kernel.sysctl."net.core.rmem_max" = 2500000;
boot.kernel.sysctl."fs.inotify.max_user_instances" = 1024;
security.pam.loginLimits = [
{
domain = "*";
type = "soft";
item = "nofile";
value = "655360";
}
];
}