build(flake.lock,flake.nix): add git-hooks and dedupe_gitignore

This commit is contained in:
Mohammad Rafiq 2025-07-03 02:14:34 +08:00
parent 295f5daba9
commit 63609ffa14
No known key found for this signature in database
3 changed files with 66 additions and 0 deletions

View file

@ -16,9 +16,22 @@
url = "github:nicknovitski/make-shell";
inputs.flake-compat.follows = "dedupe_flake-compat";
};
# git-hooks ensures nix flake check is ran before commits
git-hooks = {
url = "github:cachix/git-hooks.nix";
inputs = {
flake-compat.follows = "dedupe_flake-compat";
nixpkgs.follows = "nixpkgs";
gitignore.follows = "dedupe_gitignore";
};
};
# The following are not used but are here for deduplication.
dedupe_flake-compat.url = "github:edolstra/flake-compat";
dedupe_gitignore = {
url = "github:hercules-ci/gitignore.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);