From a0159c20c0c3a2945eb2607d7ef38ce995c023fa Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Tue, 4 Mar 2025 13:16:56 +0800 Subject: [PATCH] feat(home-manager): add direnv-nix to rafiq config --- users/modules/sh.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/users/modules/sh.nix b/users/modules/sh.nix index d4389f8..36f4db4 100644 --- a/users/modules/sh.nix +++ b/users/modules/sh.nix @@ -7,4 +7,12 @@ ai = "aichat -r %shell% -e"; }; }; + + # direnv lets us declare a .envrc in each project directory + # and updates the shell with the packages specified. + programs.direnv = { + enable = true; + enableBashIntegration = true; + nix-direnv.enable = true; + }; }