diff options
Diffstat (limited to 'system/settings')
-rw-r--r-- | system/settings/darwin.nix | 26 |
1 files changed, 26 insertions, 0 deletions
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 = '' + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" + "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> + <plist version="1.0"> + <dict> + <key>Label</key> + <string>limit.maxfiles</string> + <key>ProgramArguments</key> + <array> + <string>launchctl</string> + <string>limit</string> + <string>maxfiles</string> + <string>64000</string> + <string>524288</string> + </array> + <key>RunAtLoad</key> + <true/> + </dict> + </plist> + ''; + }; + }; + environment.systemPackages = with pkgs; [ watch coreutils-prefixed |