about summary refs log tree commit diff
path: root/.envrc
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-07-02T13·39+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-07-02T13·39+0100
commiteb1af216cf6442138e46448c0f503276aba4d55f (patch)
tree00f3c54675ec512212fdadbc0cc9fffabced3e5e /.envrc
parente4ddc3ba75f75b6df0d11ccc62b75a346d0e3846 (diff)
Clear $NIX_PATH
Ensure that $NIX_PATH is empty using a .envrc file. nix.dev considers references
to <nixpkgs>, <briefcase>, <depot>, <unstable> to be an anti-pattern because it
hinders reproducibility by introducing an implicit environment.

This repository is chock-full of references to
<{nixpkgs,unstable,briefcase,depot}>, so right now everything is broken.
Diffstat (limited to '.envrc')
-rw-r--r--.envrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/.envrc b/.envrc
index 47a1605b58dd..db68a946a14f 100644
--- a/.envrc
+++ b/.envrc
@@ -1,6 +1,10 @@
 export BRIEFCASE="$(realpath ~/briefcase)"
 export DEPOT="$(realpath ~/depot)"
 export NIXPKGS="$(realpath ~/nixpkgs)"
-export NIX_PATH="nixpkgs=${NIXPKGS}:unstable=$(realpath ~/nixpkgs-channels):depot=${DEPOT}:briefcase=${BRIEFCASE}";
+# 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:
+# https://nix.dev/tutorials/towards-reproducibility-pinning-nixpkgs.html#pinning-nixpkgs
+export NIX_PATH="";
 export DESKTOP="zeno.lon.corp.google.com";
 export LAPTOP="seneca";