remote env pessimization

This commit is contained in:
2025-10-29 12:01:20 +01:00
parent 85bb47faa7
commit 99f61c6d59

View File

@@ -21,9 +21,9 @@ t2=$(stat --format=%Z flake.lock 2>/dev/null || printf 0)
t3=$(stat --format=%Z .direnv/flake-remote-devshell-profile 2>/dev/null || printf 0)
if [[ "$t1" -gt "$t3" || "$t2" -gt "$t3" ]]; then
mkdir -p .direnv/
eval "$(nix --extra-experimental-features "nix-command flakes" print-dev-env --profile ".direnv/flake-remote-devshell-profile" "$flake_shell")"
eval "$(nix --extra-experimental-features "nix-command flakes" print-dev-env --profile ".direnv/flake-remote-devshell-profile" "$flake_shell" --option access-tokens '')"
else
eval "$(nix --extra-experimental-features "nix-command flakes" print-dev-env ".direnv/flake-remote-devshell-profile")"
eval "$(nix --extra-experimental-features "nix-command flakes" print-dev-env ".direnv/flake-remote-devshell-profile" --option access-tokens '')"
fi
unset t1 t2 t3 flake_shell