aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-03-24 13:37:19 +0100
committerGitHub <noreply@github.com>2021-03-24 13:37:19 +0100
commitd1cb956bf2e417baa08e55699a57c2bde3adf7d3 (patch)
tree2ac3968f4cdec0809b38c7e312d90e83c20fa524 /src
parent4e2c206adb38311424154dfc050d1fa01b5b9d39 (diff)
parent66b857244ff062f6bb97c23e2423338ad242f7a1 (diff)
Merge pull request #4650 from samueldr/fix/registry-config-dir
Use the appropriate config dir for the registry
Diffstat (limited to 'src')
-rw-r--r--src/libfetchers/registry.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfetchers/registry.cc b/src/libfetchers/registry.cc
index 81b2227de..74376adc0 100644
--- a/src/libfetchers/registry.cc
+++ b/src/libfetchers/registry.cc
@@ -114,7 +114,7 @@ static std::shared_ptr<Registry> getSystemRegistry()
Path getUserRegistryPath()
{
- return getHome() + "/.config/nix/registry.json";
+ return getConfigDir() + "/nix/registry.json";
}
std::shared_ptr<Registry> getUserRegistry()