diff options
author | Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | 2022-12-09 13:36:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 13:36:13 +0100 |
commit | 1548dc5587940d9e994204b5b30a32feba47d897 (patch) | |
tree | edca89141995995ddc7ddfed063a95cabcdb2e46 /misc | |
parent | 2affb19c921c3c5c3f7628a65dbcdb74f36f5222 (diff) | |
parent | 2320a2f93e0aa61e8d45dcfb3fb536361a1fcb6f (diff) |
Merge pull request #6645 from Artturin/limitinfinity
systemd,launchd match nixos open files limit
Diffstat (limited to 'misc')
-rw-r--r-- | misc/launchd/org.nixos.nix-daemon.plist.in | 2 | ||||
-rw-r--r-- | misc/systemd/nix-daemon.service.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/misc/launchd/org.nixos.nix-daemon.plist.in b/misc/launchd/org.nixos.nix-daemon.plist.in index da1970f69..5fa489b20 100644 --- a/misc/launchd/org.nixos.nix-daemon.plist.in +++ b/misc/launchd/org.nixos.nix-daemon.plist.in @@ -28,7 +28,7 @@ <key>SoftResourceLimits</key> <dict> <key>NumberOfFiles</key> - <integer>4096</integer> + <integer>1048576</integer> </dict> </dict> </plist> diff --git a/misc/systemd/nix-daemon.service.in b/misc/systemd/nix-daemon.service.in index e3ac42beb..f46413630 100644 --- a/misc/systemd/nix-daemon.service.in +++ b/misc/systemd/nix-daemon.service.in @@ -9,7 +9,7 @@ ConditionPathIsReadWrite=@localstatedir@/nix/daemon-socket [Service] ExecStart=@@bindir@/nix-daemon nix-daemon --daemon KillMode=process -LimitNOFILE=4096 +LimitNOFILE=1048576 [Install] WantedBy=multi-user.target |