diff options
author | William Carroll <wpcarro@gmail.com> | 2020-08-18T11·00+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-08-20T10·26+0100 |
commit | 0c71fc9d1d49daa914c0f56f4f9201d40415d9b4 (patch) | |
tree | 3c8a4b894065e64111c20d06026b63db17259c65 /.envrc | |
parent | 51ec9e0d88b15276ec0891f932f6b572d6450809 (diff) |
Drop support for dir-locals.nix, <nixpkgs>, etc.
In the spirit of Marie Kondo, I'm tidying up! TL;DR: - Prefer .envrc `use_nix` and delete all dir-locals.nix files - Remove ~all references to <nixpkgs>, <unstable>, <depot> and prefer referencing each with briefcase.third_party.{pkgs,unstable,depot} - Delete nixBufferFromShell function since I was only using that in dir-locals.nix files
Diffstat (limited to '.envrc')
-rw-r--r-- | .envrc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/.envrc b/.envrc index db68a946a14f..23adf2d29d3f 100644 --- a/.envrc +++ b/.envrc @@ -1,10 +1,8 @@ -export BRIEFCASE="$(realpath ~/briefcase)" -export DEPOT="$(realpath ~/depot)" -export NIXPKGS="$(realpath ~/nixpkgs)" -# I'm ensuring that $NIX_PATH is unset to avoid the anti-pattern of depending on -# <nixpkgs>, <briefcase>, <depot>, <unstable>. -# For more information about setting this to "", see: +export BRIEFCASE="$(realpath .)" +# I'm ensuring that $NIX_PATH is mostly empty, so that I only depend on +# <briefcase> for now. +# For more information on the NIX_PATH anti-pattern, see here: # https://nix.dev/tutorials/towards-reproducibility-pinning-nixpkgs.html#pinning-nixpkgs -export NIX_PATH=""; +export NIX_PATH="briefcase=$BRIEFCASE"; export DESKTOP="zeno.lon.corp.google.com"; export LAPTOP="seneca"; |