2023-03-08 18:59:15 +01:00
|
|
|
{ self, inputs, ... }:
|
2023-03-07 11:49:12 +01:00
|
|
|
{
|
2023-03-09 10:04:34 +01:00
|
|
|
imports = [
|
|
|
|
inputs.pre-commit-hooks.flakeModule
|
|
|
|
];
|
|
|
|
|
2023-03-08 18:59:15 +01:00
|
|
|
perSystem = { system, ... }: {
|
2023-03-09 10:04:34 +01:00
|
|
|
pre-commit = {
|
|
|
|
# Add itself to `nix flake check`
|
|
|
|
check.enable = true;
|
2023-03-07 11:49:12 +01:00
|
|
|
|
2023-03-09 10:04:34 +01:00
|
|
|
settings = {
|
2023-03-08 18:59:15 +01:00
|
|
|
hooks = {
|
|
|
|
nixpkgs-fmt = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2023-03-07 11:49:12 +01:00
|
|
|
|
2023-03-08 18:59:15 +01:00
|
|
|
shellcheck = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
2023-03-07 11:49:12 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|