[SOLVED] Errors installing/configuring Zoxide

Hi,

I’m trying to do something that I think should be really simple, but for some reason isn’t. When I try to install Zoxide like this …

programs.zoxide = {
  enable = true;
  enableFishIntegration = true; 
};

I keep getting errors that programs.zoxide doesn’t exist. I have added zoxide to my pkgs, so I’m baffled.
I’m not using home manager, so I can’t try the example given in the wiki, whith is HM specific.

Any ideas?

In home manager programs.name.enable instructs it to manage the configuration file for an app but not actually install it.

To install Zoxide with home manager you would want to have elsewhere in your config:

home.packages = [ pkgs.zoxide ];

edit: didn’t see the second bit of your post on mobile. As far as I know the block you posted is exclusively for home manager, so you would have to be using it to achieve your desired result.

Thanks a lot. It turns out that it was me being dim. The instructions for setting it all up are on github. I’m following them and it seems to be ok.

Thanks again,

There’s no NixOS module for zoxide (NixOS and Home Manager use a different set of modules), so you will need to configure it manually. The Home Manager module may be of help.

That is usually not the case, for example, the zoxide module does install zoxide.