robotnix
robotnix copied to clipboard
exceeding of the max open file limit on some nixos machine -> possible fix/hint
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