Hi,

On Wed, 04 May 2022 at 18:53, Kenny Ballou <k...@devnulllabs.io> wrote:

> However, one necessary feature of `guix shell` I'm not seeing: ability
> to set arbitrary environment variables when `guix shell` loads.

Yes, it misses an equivalent to ’nix-shell’ «shellHook» [1], as also
reported by [2] Well, maybe you could achieve something via ’--file’
instead of ’--manifest’, I do not know.

Since you use Direnv [3], maybe you can set the environment variables
there instead of in the manifest file.


1: <https://nixos.org/manual/nix/stable/command-ref/nix-shell.html>
2: 
<https://yhetil.org/guix/e92751b5-f3ed-47a0-b7d2-40f9d3f5c...@univ-grenoble-alpes.fr>
3: <https://github.com/direnv/direnv/wiki/GNU-Guix>

Cheers,
simon

Reply via email to