Hi, phodina skribis: > I've updated the patch so there is no abbreviation. I asked on Nix matrix channel and was told just for derivations. But I'm not expert so take it with grain of salt. > > Ludo', > you have a lot insight into the build infrastructure and you also took the concepts from Nix. The manual documents it in the context of guix-daemon (info "(guix) Build Environment Setup"): You can influence the directory where the daemon stores build trees via the ‘TMPDIR’ environment variable. However, the build tree within the chroot is always called ‘/tmp/guix-build-NAME.drv-0’, where NAME is the derivation name—e.g., ‘coreutils-8.24’. This way, the value of ‘TMPDIR’ does not leak inside build environments, which avoids discrepancies in cases where build processes capture the name of their build tree. > I guess the machines behind 'https://ci.guix.gnu.org' have enough resources. Or is there some script that handles large derivations? On Guix System, /tmp is not on tmpfs by default (maybe something to change?); that’s also the case on build machines. > From d71d48d0fd5d4803abbb50900e0d9aa3c374e7e1 Mon Sep 17 00:00:00 2001 > From: Petr Hodina > Date: Mon, 31 Oct 2022 16:12:38 +0100 > Subject: [PATCH v2] services: nix: Add more configuration fields. > > * gnu/services/nix.scm ()[build-directory]: New field. > (nix-service-etc, nix-shepherd-service): Take them into account. > * doc/guix.texi (Nix): Update it. [...] > +@item @code{build-directory} (default: @code{"/tmp"}) > +Specifies build directory. Rather something like: “The directory where build directory are stored during builds.” > This is useful to change if there is not enough RAM > +on the machine (e.g. embedded targets) or if building big packages (e.g. > +chromium). “This is useful to change if, for example, the default location does not have enough space to hold build trees for big packages.” (There’s no ‘chromium’ package in Guix.) Then, instead of a long explanation, I’d just write something like: This is similar to setting the @env{TMPDIR} environment variable for @command{guix-daemon}. @ref{Build Environment Setup, @env{TMPDIR}}, for more info. Could you send an updated patch? Thanks, Ludo’.