Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exceeding of the max open file limit on some nixos machine -> possible fix/hint #212

Open
bolives-hax opened this issue Aug 25, 2023 · 0 comments

Comments

@bolives-hax
Copy link

on some machines like an installer/live images that I tested the default amount for a users/shells open files is not enough to build the derivation via nix build. Changing via /etc/nixos/*.nix in for example as seen below resolves the problem.

  security.pam.loginLimits = [{
    domain = "*";
    type = "soft";
    item = "nofile";
    value = "-1";
  }];

Unlike that is an isolated incident for live/installer images. I wonder if one could add it as a small notice to the readme when show how to build the template/default. Just a suggestion, maybe it doesn't need to be mentioned or there is a better way to set this. Just sharing what I found out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant