Skip to content

launchd: Set NumberOfFiles to 4096#5726

Merged
edolstra merged 1 commit intoNixOS:masterfrom
azuwis:master
Dec 6, 2021
Merged

launchd: Set NumberOfFiles to 4096#5726
edolstra merged 1 commit intoNixOS:masterfrom
azuwis:master

Conversation

@azuwis
Copy link
Contributor

@azuwis azuwis commented Dec 4, 2021

The default maxfiles on macOS 11 and macOS 12 is 256, which is too low
for nix to work:

$ launchctl limit maxfiles
	maxfiles    256            unlimited

Set NumberOfFiles of nix-daemon to 4096 to avoid Too many open files
error.

The default maxfiles on macOS 11 and macOS 12 is 256, which is too low
for nix to work:

```
$ launchctl limit maxfiles
	maxfiles    256            unlimited
```

Set NumberOfFiles of nix-daemon to 4096 to avoid `Too many open files`
error.
@hexagonal-sun
Copy link

This fixed an issue that stopped me from bootstrapping my initial Darwin config. Thanks @azuwis .

@roberth
Copy link
Member

roberth commented Dec 5, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants