feat(git-hooks): enable nixpkgs-fmt pre-commit hook
This commit is contained in:
parent
aee34b5a0a
commit
5020df56b6
2 changed files with 8 additions and 0 deletions
|
@ -2,4 +2,11 @@
|
|||
{
|
||||
# TODO: add to readme
|
||||
imports = [ inputs.git-hooks.flakeModule ];
|
||||
perSystem = psArgs: {
|
||||
pre-commit.settings.hooks = {
|
||||
nixpkgs-fmt.enable = true;
|
||||
#TODO: add write-files
|
||||
};
|
||||
make-shells.default.shellHook = psArgs.config.pre-commit.installationScript;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue