From 6f9026a5e60ec68386e024f0d2aa922f845375ad Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Wed, 30 Sep 2026 23:34:57 -0500 Subject: [PATCH] build(env): provide Nix devShell and direnv auto-activation - Add declarative shell.nix bundling Node 24, Biome 2.5, uv and Python 3.11 - Add .envrc with use nix for seamless environment loading on directory change - Ignore .direnv cache directory in .gitignore --- .envrc | 1 + .gitignore | 1 + shell.nix | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 .envrc create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/.gitignore b/.gitignore index 1d1ddc3..1946eeb 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ data/ # Environment .env *.env.local +.direnv/ # IDE .vscode/ diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..cc0d39d --- /dev/null +++ b/shell.nix @@ -0,0 +1,19 @@ +{ pkgs ? import {} }: + +pkgs.mkShell { + name = "bdinvite-dev"; + + buildInputs = with pkgs; [ + nodejs + biome + uv + python311 + ]; + + shellHook = '' + echo "🎂 bdinvite development shell loaded" + echo " Node: $(node --version 2>/dev/null || echo 'not found')" + echo " Biome: $(biome --version 2>/dev/null || echo 'not found')" + echo " uv: $(uv --version 2>/dev/null || echo 'not found')" + ''; +}