-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: provide a flake registry #17
Comments
An alternative idea: what if this wasn't part of Rime, but in another small service in front of it? As in, this new imaginary service (lets dub it But before we go down either route, there's something that isn't very clear to me: what would be the use case for the registry? How would I, as an end user make use of it? With |
Yea I mean, the documentation is very lacking. Honestly what I hoped to get out of it, somehow (likely not possible currently) would be the ability to do something like
Definitely possible, although I'm not not sure if it is large enough to warrant more than a feature flag. Then again, the registry feature is very non obvious, so I honestly have no idea. |
I think the I had a quick look at my own
The referenced directory appears to be an extracted tarball. So.... if we want to provide a registry, we'd have to provide not only a JSON, but a tarball with a I'll try to do a bit of experimenting, to see how it works in practice. |
On a related note, perhaps its worth having a look at NUR? |
So, the documentation is not comrehensive https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-registry.html#registry-format. But I've investigated the possibility of doing this a bit.
Doing something like e.g. this is the closest I've gotten:
It might sadly be the case that there is just no easy way for us to do this in a way that supports arbitrary repositories. In that case, leaning on what we discussed on fedi, we might consider saving requests, allowing people to opt out with a query parameter like
?private=true
, and having that populate aregistry.json
file.I'm not itching to implement this yet, I'm hoping someone comes along and tells me there is a much easier, more elegant way to do this... 🤞
The text was updated successfully, but these errors were encountered: