From 1a02818ca822b3799c0199ce1d2042acf9c1271f Mon Sep 17 00:00:00 2001 From: Bryton Hall Date: Sat, 13 Aug 2022 01:06:30 -0400 Subject: [PATCH] move NODE_PATH to shellHook to fix direnv startup --- flake.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index c2fb279..ce3cb4b 100644 --- a/flake.nix +++ b/flake.nix @@ -90,7 +90,9 @@ '') ]; # KUBECONFIG = "kubeconfig.json"; - NODE_PATH = "${pkgs.nodePackages.prettier-plugin-toml}/lib/node_modules:$NODE_PATH"; + shellHook = '' + export NODE_PATH="${pkgs.nodePackages.prettier-plugin-toml}/lib/node_modules:$NODE_PATH" + ''; }; formatter = pkgs.treefmt;