feat(direnv): add shellhook, rename env var
This commit is contained in:
parent
0d02eb962d
commit
97ddb19f9e
|
@ -19,7 +19,10 @@
|
||||||
devShells = forAllSystems (pkgs: {
|
devShells = forAllSystems (pkgs: {
|
||||||
default = pkgs.mkShellNoCC {
|
default = pkgs.mkShellNoCC {
|
||||||
packages = [ pkgs.hello ];
|
packages = [ pkgs.hello ];
|
||||||
IN_SHELL = "yes!";
|
EXAMPLE_VAR = "inside the direnv template";
|
||||||
|
shellHook = ''
|
||||||
|
echo "Hello from $EXAMPLE_VAR, $(whoami)!"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue