From b35004a3ad86b53c72fe67b3cd56c51f909d8f50 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Fri, 12 Jun 2026 14:55:13 -0500 Subject: [PATCH] chore: add ulimit raise to Darwin --- darwin/baseline.nix | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/darwin/baseline.nix b/darwin/baseline.nix index ced3f95..2bbd91f 100644 --- a/darwin/baseline.nix +++ b/darwin/baseline.nix @@ -32,10 +32,37 @@ let }; in { - environment.systemPackages = with pkgs; [ - agenix - pkgs'.hms - ]; + environment = { + launchDaemons = { + "limit.maxfiles.plist" = { + enable = true; + text = '' + + + + + Label + limit.maxfiles + ProgramArguments + + launchctl + limit + maxfiles + 524288 + 524288 + + RunAtLoad + + + + ''; + }; + }; + systemPackages = with pkgs; [ + agenix + pkgs'.hms + ]; + }; fonts.packages = with pkgs; [ dejavu_fonts