We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 299f316 commit f2244daCopy full SHA for f2244da
flake.nix
@@ -16,23 +16,29 @@
16
systems = ["x86_64-linux"];
17
18
imports = [
19
- ./pre-commit-hooks.nix
+ inputs.pre-commit-hooks.flakeModule
20
];
21
22
perSystem = {
23
config,
24
pkgs,
25
...
26
}: {
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
37
devShells.default = pkgs.mkShell {
38
packages = [
- pkgs.alejandra
39
pkgs.git
40
pkgs.packwiz
- pkgs.yamllint
41
- name = "mc-modpack-kit";
- DIRENV_LOG_FORMAT = "";
42
shellHook = ''
43
${config.pre-commit.installationScript}
44
'';
pre-commit-hooks.nix
0 commit comments