nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

nixos/direnv: init

Open infinisil opened this issue 1 year ago • 0 comments

Description of changes

nix-direnv is surprisingly annoying to configure correctly, due to it needing both system-wide adjustments (nix.conf changes), but also user-wide adjustments (telling direnv to load nix-direnv using ~/.config/direnv/direnvrc).

This module puts an end to that, allowing a direnv + nix-direnv installation with just

{
  programs.direnv.enable = true;
}

Currently this module comes with nix-direnv enabled by default and there's no way to turn it off. If there ever is a need to only enable direnv without nix-direnv we can do that in another PR. I don't need that myself.

Ping @zimbatm @Mic92 @bbenne10

Things done
  • [x] Tested the module

infinisil avatar Sep 23 '22 20:09 infinisil