I am tried to override the really-heavy package (chromium) to add missing functionality (krb5). And faced with memory limitation for this operation. Then I tried to google and look in manuals and could not find any information about where does nix-build and nixos-rebuild executes genericBuild scripts for packages and how to change it. I tries to use TMDIR variable but no unpacked sources appeared there - just empty folder.
How can I move building directory from limited temporary disk to huge ssd?
in my configuration.nix… your mileage will vary, it will give you significantly more swap space at the cost of CPU.
You could try a symbolic link , but there must be a way to set it, which escapes me right now.
having tmp files in ram makes a lot of sense , especially with big builds. It can really keep wear and tear down of HDD’s and SSD’s… RAM has a pretty high mean time before failure… spinning rust and SSD’s are doomed to fail by their design.