Add this flake as an input to your devenv configuration.
# add this flake input to your devenv
devenv inputs add githooks github:y-cg/githooks.nix/masterthen import the githooks module in your devenv configuration file.
# devenv.nix
{
# ...
imports = [
# ...
inputs.githooks.modules.default
];
}or if you prefer fine grained control, you can import specific githooks modules like this:
# devenv.nix
{
# ...
imports = [
# ...
inputs.githooks.modules.forge-fmt
];
}# devenv.nix
{
custom.git-hooks = {
forge-fmt.enable = true;
};
}