comma icon indicating copy to clipboard operation
comma copied to clipboard

Prebuilt index not found

Open MarkusLohmayer opened this issue 2 years ago • 4 comments

I tried to setup comma together with the prebuilt index from https://github.com/Mic92/nix-index-database but I get Warning: Nix-index database does not exist.

I am on macOS and I have nix-index-database.hmModules.nix-index as a home-manager module, further I have programs.nix-index.enable = true; and finally I have comma in home.packages.

You can see the precise setup here:

  • https://github.com/MarkusLohmayer/nix-config/blob/main/flake.nix#L23
  • https://github.com/MarkusLohmayer/nix-config/blob/main/flake.nix#L87
  • https://github.com/MarkusLohmayer/nix-config/blob/main/home/home.nix#L21
  • https://github.com/MarkusLohmayer/nix-config/blob/main/home/home.nix#L54

Thanks!

MarkusLohmayer avatar Dec 26 '22 09:12 MarkusLohmayer

Yep, seems to be broken for this use case. Maybe it has to do with the wrapper that it's using.

eclairevoyant avatar Jan 18 '24 04:01 eclairevoyant

It also failed for me but I imported via the darwin module

so nix-index-database.darwinModules.nix-index and comma installed system wide via environment.systemPackages

The command-not-found hook for nix-index does however work so the infrastructure is there.

bestlem avatar Mar 13 '24 10:03 bestlem