default.nix: avoid more warnings in sandboxed builds

This commit is contained in:
Michele Guerini Rocco 2024-12-03 16:54:18 +01:00
parent a8a35bc783
commit 27e3ffc7b7
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -58,7 +58,12 @@ in
FONTCONFIG_FILE = pkgs.makeFontsConf {
fontDirectories = with pkgs; [ libertinus julia-mono ];
};
XDG_CACHE_HOME = "$NIX_BUILD_TOP";
preConfigure = ''
# set directories for temporary files
export XDG_CACHE_HOME=$NIX_BUILD_TOP
export XDG_CONFIG_HOME=$NIX_BUILD_TOP
'';
enableParallelBuilding = true;