you can specify a flake URI like github:${OWNER}/${REPO}#${ATTRIBUTE}
I think you meant ${FORGE}:${OWNER}/${REPO}#${ATTRIBUTE}. Many alternatives exist and we should promote those! I see that this is followed with the clause that it’s for GitHub, but I’d still like to see the post being a bit more generic and inclusive.
Unfortunately, the registry lets you add aliases for a specific flake. It does not currently support adding aliases for hosts or sources in general. I have considered writing a patch that adds what I want to nix before it’s compiled, but that’s much less portable.
I think you meant
${FORGE}:${OWNER}/${REPO}#${ATTRIBUTE}
. Many alternatives exist and we should promote those! I see that this is followed with the clause that it’s for GitHub, but I’d still like to see the post being a bit more generic and inclusive.I wish there was a way to add more aliases, so that I could coalesce
git+https://my.selfhosted.git.example.com/owner/repo.git
toalias:owner/repo
.You may be interested in
nix registry
https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-registry.htmlRegistry is not as useful as being able to define separate alias in form of
my_alias:owner/repo
.Unfortunately, the registry lets you add aliases for a specific flake. It does not currently support adding aliases for hosts or sources in general. I have considered writing a patch that adds what I want to
nix
before it’s compiled, but that’s much less portable.