From c0e1054c66c49423e69de686955c3671b39d1888 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 4 Apr 2024 11:36:11 +0200 Subject: darwin: build Emacs with higher open file limit --- user/settings/darwin.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = ""; -- cgit 1.4.1