Load .env in dev shell

53c01621166e6b8c463e3ec8b7367a437d807922
nandi committed 13 days ago
M flake.nix +8-1
diff --git a/flake.nix b/flake.nixindex f79baee..b8b5cbd 100644--- a/flake.nix+++ b/flake.nix@@ -98,6 +98,13 @@           ];            shellHook = ''+            # shellcheck source=/dev/null+            if [ -f .env ]; then+              set -a+              source .env+              set +a+            fi+             echo "Forge dev shell"             echo "Commands:"             echo "  nix run .#run-forge        Start the dev server using a decrypted password file"@@ -113,4 +120,4 @@        }     );-}\ No newline at end of file+}
An unhandled error has occurred. Reload 🗙