mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
Make the URL/path of the global flake registry configurable
This commit is contained in:
parent
c38c726eb5
commit
3c171851a8
3 changed files with 14 additions and 2 deletions
|
@ -126,8 +126,7 @@ void writeLockFile(const LockFile & lockFile, const Path & path)
|
|||
|
||||
std::shared_ptr<FlakeRegistry> getGlobalRegistry()
|
||||
{
|
||||
Path registryFile = settings.nixDataDir + "/nix/flake-registry.json";
|
||||
return readRegistry(registryFile);
|
||||
return readRegistry(evalSettings.flakeRegistry);
|
||||
}
|
||||
|
||||
Path getUserRegistryPath()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue