From ba2af712994a709ddb10f789736fce9fda99cc44 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 3 Apr 2024 16:58:29 +0200 Subject: darwin: increase max open files --- system/settings/darwin.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'system') diff --git a/system/settings/darwin.nix b/system/settings/darwin.nix index b1c6aad3..806fdeb9 100644 --- a/system/settings/darwin.nix +++ b/system/settings/darwin.nix @@ -29,6 +29,32 @@ allowUnfree = true; }; + environment.launchDaemons = { + "limit.maxfiles.plist" = { + text = '' + + + + + Label + limit.maxfiles + ProgramArguments + + launchctl + limit + maxfiles + 64000 + 524288 + + RunAtLoad + + + + ''; + }; + }; + environment.systemPackages = with pkgs; [ watch coreutils-prefixed -- cgit 1.4.1