diff --git a/src/libstore/include/nix/store/globals.hh b/src/libstore/include/nix/store/globals.hh index b9a0689fb..89e92d30e 100644 --- a/src/libstore/include/nix/store/globals.hh +++ b/src/libstore/include/nix/store/globals.hh @@ -1143,7 +1143,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