diff --git a/src/libstore/include/nix/store/globals.hh b/src/libstore/include/nix/store/globals.hh index fa4f7abbd..5f44c3dd0 100644 --- a/src/libstore/include/nix/store/globals.hh +++ b/src/libstore/include/nix/store/globals.hh @@ -1141,7 +1141,7 @@ public: Setting netrcFile{ this, - fmt("%s/%s", nixConfDir, "netrc"), + (nixConfDir / "netrc").string(), "netrc-file", R"( If set to an absolute path to a `netrc` file, Nix uses the HTTP