aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2021-03-17 17:56:57 -0400
committerSamuel Dionne-Riel <samuel@dionne-riel.com>2021-03-19 15:20:47 -0400
commit66b857244ff062f6bb97c23e2423338ad242f7a1 (patch)
tree156d4f2a5598adfb13457e4e411085de2217dc30 /src/libfetchers
parentbf07581497d55ade85d80e5d9ad9bf5d962e3403 (diff)
Use the appropriate config dir for the registry
Diffstat (limited to 'src/libfetchers')
-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()