From 97ddb19f9e1f84710b8edeb8f58a76242d253e88 Mon Sep 17 00:00:00 2001 From: aemogie <54412618+aemogie@users.noreply.github.com> Date: Fri, 3 May 2024 17:39:51 +0530 Subject: [PATCH] feat(direnv): add shellhook, rename env var --- direnv/flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/direnv/flake.nix b/direnv/flake.nix index 7b5b8d9..1df77ea 100644 --- a/direnv/flake.nix +++ b/direnv/flake.nix @@ -19,7 +19,10 @@ devShells = forAllSystems (pkgs: { default = pkgs.mkShellNoCC { packages = [ pkgs.hello ]; - IN_SHELL = "yes!"; + EXAMPLE_VAR = "inside the direnv template"; + shellHook = '' + echo "Hello from $EXAMPLE_VAR, $(whoami)!" + ''; }; }); };