Skip to content

External Builders File Limit #326

@Montmorency

Description

@Montmorency

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions