From c1aba6053f82a95c6212edf4cd80aa3619fcdf39 Mon Sep 17 00:00:00 2001 From: vkcku Date: Mon, 1 Jun 2026 19:48:48 +0530 Subject: infra: set treefmt working directory to infra monorepo-revid: f2df0cdf43fe50b78726bb3f09570603878267bf --- infra/nix/devshell.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'infra/nix/devshell.nix') diff --git a/infra/nix/devshell.nix b/infra/nix/devshell.nix index a09bb0c..316afd2 100644 --- a/infra/nix/devshell.nix +++ b/infra/nix/devshell.nix @@ -15,6 +15,10 @@ treefmt # keep-sorted end ]; + + shellHook = '' + export TREEFMT_WORKING_DIR="$("${pkgs.git}/bin/git" rev-parse --show-toplevel)/infra" + ''; }; }; } -- cgit v1.3.1