Skip to content

y-cg/githooks.nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

the missing githooks for devenv

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors