feat(git-hooks): enable nixpkgs-fmt pre-commit hook
This commit is contained in:
parent
1b36bdc36d
commit
2599d2e49c
2 changed files with 8 additions and 0 deletions
1
.pre-commit-config.yaml
Symbolic link
1
.pre-commit-config.yaml
Symbolic link
|
@ -0,0 +1 @@
|
|||
/nix/store/qh06700fhmh52lwrzswkvbk3g06br5rm-pre-commit-config.json
|
|
@ -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