Merge pull request #4650 from samueldr/fix/registry-config-dir

Use the appropriate config dir for the registry
This commit is contained in:
Eelco Dolstra
2021-03-24 13:37:19 +01:00
committed by GitHub
2 changed files with 33 additions and 7 deletions
+1 -1
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()