all repos — nixfiles @ 821e5698fb6a52cf347cd102b32dc5076591ab4a

System and user configuration, managed by nix and home-manager

darwin: use nix generator for maxfiles launch daemon

Alan Pearce
commit

821e5698fb6a52cf347cd102b32dc5076591ab4a

parent

864601b8d056d0b2734bd322dfbbf21e4923d342

1 file changed, 11 insertions(+), 24 deletions(-)

changed files
M system/settings/darwin.nixsystem/settings/darwin.nix
@@ -47,30 +47,17 @@ };
}; }; }; - - 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> - ''; + launchd.daemons.limit-maxfiles = { + serviceConfig = { + Label = "limit-maxfiles"; + RunAtLoad = true; + ProgramArguments = [ + "launchctl" + "limit" + "maxfiles" + "64000" + "52428" + ]; }; };