From fd6c4614cf390a29bf986dee71a3bd99bbe11270 Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Wed, 10 Dec 2025 03:34:10 +0300 Subject: [PATCH] globals: Fix netrc-file default value std::filesystem::path does quoting by default so it resulted in: > netrc-file = "/etc/nix"/netrc --- src/libstore/include/nix/store/globals.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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