direnv: flake based envs are pure by default
We should reflect this in the IN_NIX_SHELL envar, since it doesn't get set properly otherwise.
This commit is contained in:
parent
4367a6212f
commit
70723403cc
2 changed files with 3 additions and 2 deletions
2
.envrc
2
.envrc
|
@ -1 +1 @@
|
|||
use flake && IN_NIX_SHELL="pure" || use nix
|
||||
use flake || use nix
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
mkdir -p $(direnv_layout_dir)
|
||||
watch_file flake.nix
|
||||
watch_file flake.lock
|
||||
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
|
||||
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")" \
|
||||
&& IN_NIX_SHELL="pure"
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue