From 2320a2f93e0aa61e8d45dcfb3fb536361a1fcb6f Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 10 Jun 2022 17:46:57 +0300 Subject: [PATCH] systemd,launchd match nixos open files limit it was bumped in https://github.com/NixOS/nixpkgs/pull/176558 --- misc/launchd/org.nixos.nix-daemon.plist.in | 2 +- 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 @@ SoftResourceLimits NumberOfFiles - 4096 + 1048576 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