all repos — nixfiles @ c0e1054c66c49423e69de686955c3671b39d1888

System and user configuration, managed by nix and home-manager

darwin: build Emacs with higher open file limit
Alan Pearce alan@alanpearce.eu
Thu, 04 Apr 2024 11:36:11 +0200
commit

c0e1054c66c49423e69de686955c3671b39d1888

parent

ba2af712994a709ddb10f789736fce9fda99cc44

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M user/settings/darwin.nixuser/settings/darwin.nix
@@ -9,7 +9,9 @@ maid     less
   ];
 
-  programs.emacs.package = pkgs.emacs29;
+  programs.emacs.package = pkgs.emacs29.overrideAttrs (old: {
+    NIX_CFLAGS_COMPILE = (old.NIX_CFLAGS_COMPILE or "") + " -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT";
+  });
 
   home.file.".hushlogin".text = "";