forked from NixOS/nix
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I'm compiling a haskell project with ghc-9.10.3. When building for x86-64 linux on aarm64 darwin I'm hitting a too many files opened error:
fatal error: ... bits/stdio2-decl.h: Too many open files in system
ghc-9.10.3: 'cc' failed in phase 'C Compiler'
Is there a way to pass builder config to the virtualization framework something like what you would do in system config:
# Increase limit for the nix-daemon and build users
systemd.services.nix-daemon.serviceConfig = {
LimitNOFILE = 1048576;
};
Also should not switch from "nixos-rebuild switch -j auto" to "-j 1" fixed issue.
Metadata
Metadata
Assignees
Labels
No labels