diff --git a/src/nix/main.cc b/src/nix/main.cc index 811d1c495a6..cbee5cde8af 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -374,10 +374,6 @@ void mainWrapped(int argc, char ** argv) } #endif - initNix(); - initGC(); - flakeSettings.configureEvalSettings(evalSettings); - /* Set the build hook location For builds we perform a self-invocation, so Nix has to be @@ -390,6 +386,10 @@ void mainWrapped(int argc, char ** argv) "__build-remote", }); + initNix(); + initGC(); + flakeSettings.configureEvalSettings(evalSettings); + #ifdef __linux__ if (isRootUser()) { try {