diff options
author | William Carroll <wpcarro@gmail.com> | 2020-02-06T21·39+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-02-07T11·01+0000 |
commit | b47ca8b8769883557ac1ef62a6fb1cd815f08fb6 (patch) | |
tree | 3f4e7443b5c50c9489d3332360b61af3d53e1608 /.envrc | |
parent | a91d00fd94817453c0be43b87d722153cc35c03d (diff) |
Support lorri
From what I currently understand, lorri is a tool (sponsored by Target) that uses nix and direnv to build and switch between environments quickly and easily. When you run `lorri init` inside of a directory, lorri creates a shell.nix and an .envrc file. The .envrc file calls `eval "$(lorri direnv)"` and the shell.nix calls `<nixpkgs>.mkShell`, which creates a shell environment exposing dependencies on $PATH and environment variables. lorri uses direnv to ensure that $PATH and the environment variables are available depending on your CWD. lorri becomes especially powerful because of Emacs's `direnv-mode`, which ensures that Emacs buffers can access anything exposed by direnv as well. I still need to learn more about how lorri works and how it will affect my workflow, but I'm enjoying what I've seen thus far, and I'm optimistic about the road ahead.
Diffstat (limited to '.envrc')
-rw-r--r-- | .envrc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/.envrc b/.envrc index 1e44420ed401..051d09d292a8 100644 --- a/.envrc +++ b/.envrc @@ -1,7 +1 @@ -export BRIEFCASE=~/briefcase -export DEPOT=~/depot -export NIXPKGS=$HOME/nixpkgs -export DESKTOP=zeno.lon.corp.google.com -export LAPTOP=seneca -export CLOUDTOP=wpcarro.c.googlers.com -NIX_PATH=nixpkgs=$NIXPKGS:depot=$DEPOT:briefcase=$BRIEFCASE +eval "$(lorri direnv)" |