From 55500896141f98d202ef396acf65be62be7de5e4 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 23 May 2025 13:02:19 +0100 Subject: [PATCH] feat: add more tooling to devshell Adds useful tools and environment variables to improve the rust development experience within the nix environment. This includes tools like git, gh, nodejs, cargo-watch, cargo-edit, clippy, and rustfmt. It also configures a shell hook to provide information and sets RUST_BACKTRACE to 1 for easier debugging. --- flake.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/flake.nix b/flake.nix index 1b7819b..457e0af 100644 --- a/flake.nix +++ b/flake.nix @@ -46,7 +46,21 @@ rustToolchain rust-analyzer nixpkgs-fmt + git + gh + nodejs + cargo-watch + cargo-edit + clippy + rustfmt ]; + + # Environment variables that help with development + shellHook = '' + echo "🦀 Rust development environment loaded" + echo "📝 rust-analyzer tools available" + export RUST_BACKTRACE=1 + ''; }; });