Set GC_NPROCS to hide gc warning messages of nix

See https://github.com/NixOS/nix/issues/3237
This commit is contained in:
Tobias Happ 2019-11-26 15:25:01 +01:00 committed by Alexander Sosedkin
parent 41e39deaec
commit f2867e8b20

View file

@ -18,6 +18,8 @@ writeText "login-inner" ''
export USER="${config.user.userName}"
export HOME="${config.user.home}"
export GC_NPROCS=1 # to prevent gc warnings of nix, see https://github.com/NixOS/nix/issues/3237
${lib.optionalString config.build.initialBuild ''
[ "$#" -gt 0 ] || echo "Sourcing Nix environment..."
. ${nix}/etc/profile.d/nix.sh