nix-community / nix-index

Quickly locate nix packages with specific files [maintainers=@bennofs @figsoda @raitobezarius]
Other
817 stars 50 forks source link

public nix-locate server instance for thin clients #174

Closed milahu closed 1 year ago

milahu commented 2 years ago

running nix-index is slow and seems wasteful ... who wants to run a public nix-locate server? : D something like https://packages.debian.org/en/#search_contents

or, to distribute the load / obfuscate the attack surface: make a distributed database with orbitdb over ipfs?

or, cache the 40 MByte ~/.cache/nix-index/files file on cache.nixos.org which is much faster to download than "a million small files" (compare: git object compression)

sample server: https://github.com/milahu/nix-locate-server/blob/master/nix-locate-server.go

curl "http://localhost:8080/bin/nix-locate%20--regex%20hello-world"
Artturin commented 2 years ago

https://github.com/Mic92/nix-index-database

bennofs commented 1 year ago

Public databases are available via the nix-index-database repo linked above, and a online version is already requested here #194, so closing this as solved/duplicate.