Use the appropriate config dir for the registry

This commit is contained in:
Samuel Dionne-Riel 2021-03-17 17:56:57 -04:00
parent bf07581497
commit 66b857244f

View file

@ -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()