summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2024-04-04 11:36:11 +0200
committerAlan Pearce2024-04-04 11:36:11 +0200
commitc0e1054c66c49423e69de686955c3671b39d1888 (patch)
tree72b9937cef060ce1697a54ea7988d37e75a2c320 /user
parentba2af712994a709ddb10f789736fce9fda99cc44 (diff)
downloadnixfiles-c0e1054c66c49423e69de686955c3671b39d1888.tar.lz
nixfiles-c0e1054c66c49423e69de686955c3671b39d1888.tar.zst
nixfiles-c0e1054c66c49423e69de686955c3671b39d1888.zip
darwin: build Emacs with higher open file limit
Diffstat (limited to 'user')
-rw-r--r--user/settings/darwin.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/user/settings/darwin.nix b/user/settings/darwin.nix
index 47466cf9..3b122e0f 100644
--- a/user/settings/darwin.nix
+++ b/user/settings/darwin.nix
@@ -9,7 +9,9 @@
     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 = "";