Skip to content

Commit 026a3d5

Browse files
author
jh-devv
committed
chore(nix): remove 'pre-commit-hooks.nix' in favor of the code being in 'flake.nix'
1 parent 299f316 commit 026a3d5

File tree

2 files changed

+12
-20
lines changed

2 files changed

+12
-20
lines changed

flake.nix

+12-5
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,30 @@
1616
systems = ["x86_64-linux"];
1717

1818
imports = [
19-
./pre-commit-hooks.nix
19+
inputs.pre-commit-hooks.flakeModule
2020
];
2121

2222
perSystem = {
2323
config,
2424
pkgs,
2525
...
2626
}: {
27+
pre-commit = {
28+
settings.excludes = ["flake.lock"];
29+
30+
settings = {
31+
hooks = {
32+
alejandra.enable = true;
33+
yamllint.enable = true;
34+
markdownlint.enable = true;
35+
};
36+
};
37+
};
2738
devShells.default = pkgs.mkShell {
2839
packages = [
29-
pkgs.alejandra
3040
pkgs.git
3141
pkgs.packwiz
32-
pkgs.yamllint
3342
];
34-
name = "mc-modpack-kit";
35-
DIRENV_LOG_FORMAT = "";
3643
shellHook = ''
3744
${config.pre-commit.installationScript}
3845
'';

pre-commit-hooks.nix

-15
This file was deleted.

0 commit comments

Comments
 (0)