nix-community / nix-direnv

A fast, persistent use_nix/use_flake implementation for direnv [maintainer=@Mic92 / @bbenne10]
MIT License
1.87k stars 104 forks source link

Cannot install via home-manager #96

Closed zoedsoupe closed 3 years ago

zoedsoupe commented 3 years ago

I tried to add as README says:

programs = {
    direnv = {
      enable = true;
      nix-direnv.enable = true;
    };
  };

However I always get this error:

error: The option `programs.direnv.nix-direnv' does not exist. Definition values:
- In `/home/matthew/documents/privy/dotfiles/home/home.nix':
    {
      enable = true;
    }
(use '--show-trace' to show detailed location information)

There are 158 unread and relevant news items.
Read them by running the command 'home-manager news'.

Metadata

Mic92 commented 3 years ago

I think your home-manager is older: https://github.com/nix-community/home-manager/pull/2089 The option was called enableNixDirenvIntegration before.

zoedsoupe commented 3 years ago

Correct! I'm not used to upadte channels yet haha! Thanks for noting it!