Skip to content

Commit f2244da

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 f2244da

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

flake.nix

+11-5
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,29 @@
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+
check.enable = true;
29+
settings.excludes = ["flake.lock"];
30+
settings.hooks = {
31+
alejandra.enable = true;
32+
deadnix.enable = true;
33+
prettier.enable = true;
34+
markdownlint.enable = true;
35+
};
36+
};
2737
devShells.default = pkgs.mkShell {
2838
packages = [
29-
pkgs.alejandra
3039
pkgs.git
3140
pkgs.packwiz
32-
pkgs.yamllint
3341
];
34-
name = "mc-modpack-kit";
35-
DIRENV_LOG_FORMAT = "";
3642
shellHook = ''
3743
${config.pre-commit.installationScript}
3844
'';

pre-commit-hooks.nix

-15
This file was deleted.

0 commit comments

Comments
 (0)