envrc: allow loading env vars from `.env` if it exists

from ffd479d66f

This is primarily useful for replicating the environment from CI so that
the `nix-build-and-cache` script is easier to invoke.

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-05-03 10:53:39 -04:00 committed by June
parent 97e81885db
commit 3b2db9027a
2 changed files with 5 additions and 0 deletions

2
.envrc
View File

@ -3,3 +3,5 @@
use flake use flake
PATH_add bin PATH_add bin
dotenv_if_exists

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
# Local environment overrides
/.env
# CMake # CMake
cmake-build-*/ cmake-build-*/