aboutsummaryrefslogtreecommitdiff
path: root/infra/nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/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"
+ '';
};
};
}