Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 704 Bytes

File metadata and controls

50 lines (40 loc) · 704 Bytes

The Missing githooks for devenv

Usage

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/master

then 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
  ];
}

Available githooks

Forge

# devenv.nix
{
  custom.git-hooks = {
    forge-fmt.enable = true;
  };
}