mirror of
https://github.com/RGBCube/alejandra
synced 2025-08-01 04:57:44 +00:00
refactor: allow nix3 alias
This commit is contained in:
parent
ba47c3b118
commit
b72274b052
1 changed files with 6 additions and 1 deletions
7
.envrc
7
.envrc
|
@ -7,5 +7,10 @@ watch_file flake.lock
|
||||||
{
|
{
|
||||||
# shell gc root dir
|
# shell gc root dir
|
||||||
mkdir -p "$(direnv_layout_dir)"
|
mkdir -p "$(direnv_layout_dir)"
|
||||||
eval "$(nix print-dev-env --no-update-lock-file --no-write-lock-file --profile $(direnv_layout_dir)/flake-profile)"
|
if test -n "$(command -v nix3)"; then
|
||||||
|
nix=nix3
|
||||||
|
else
|
||||||
|
nix=nix
|
||||||
|
fi
|
||||||
|
eval "$($nix print-dev-env --no-update-lock-file --no-write-lock-file --profile $(direnv_layout_dir)/flake-profile)"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue