feat(git-hooks): enable nixpkgs-fmt pre-commit hook

This commit is contained in:
Mohammad Rafiq 2025-07-05 20:30:31 +08:00
parent 1b36bdc36d
commit 2599d2e49c
No known key found for this signature in database
2 changed files with 8 additions and 0 deletions

1
.pre-commit-config.yaml Symbolic link
View file

@ -0,0 +1 @@
/nix/store/qh06700fhmh52lwrzswkvbk3g06br5rm-pre-commit-config.json

View file

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