aboutsummaryrefslogtreecommitdiff
path: root/infra/nix/devshell.nix
diff options
context:
space:
mode:
authorvkcku <[email protected]>2026-06-01 19:48:48 +0530
committervkcku <[email protected]>2026-06-01 19:48:48 +0530
commitc1aba6053f82a95c6212edf4cd80aa3619fcdf39 (patch)
treeb1b6640da82b5710dbc3a21b29ae881bb04b196f /infra/nix/devshell.nix
parentinfra(plato): add bootstrap script (kind of) (diff)
infra: set treefmt working directory to infra
monorepo-revid: f2df0cdf43fe50b78726bb3f09570603878267bf
Diffstat (limited to 'infra/nix/devshell.nix')
-rw-r--r--infra/nix/devshell.nix4
1 files changed, 4 insertions, 0 deletions
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"
+ '';
};
};
}