diff options
Diffstat (limited to 'root/nix')
| -rw-r--r-- | root/nix/devshell.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/root/nix/devshell.nix b/root/nix/devshell.nix index 98131e4..80eefe0 100644 --- a/root/nix/devshell.nix +++ b/root/nix/devshell.nix @@ -9,6 +9,15 @@ packages = [ pkgs.nixd ]; + + shellHook = '' + hooksdir="$(git rev-parse --show-toplevel)/root/hooks" + if [ ! -d "$hooksdir" ]; then + echo "error: hooks directory not found at $hooksdir" + exit 1 + fi + git config set core.hooksPath "$hooksdir" + ''; }; devShells.root = |
