summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 = "";