robotnix icon indicating copy to clipboard operation
robotnix copied to clipboard

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

Open bolives-hax opened this issue 1 year ago • 0 comments

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

bolives-hax avatar Aug 25 '23 19:08 bolives-hax