We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
extraModulesPath
1 parent db249c9 commit b26808aCopy full SHA for b26808a
1 file changed
templates/flake-parts/flake.nix
@@ -25,7 +25,25 @@
25
perSystem =
26
{ pkgs, ... }:
27
{
28
- devshells.default = { };
+ devshells.default = (
29
+ { extraModulesPath, ... }@args:
30
+ {
31
+ # `extraModulesPath` provides access to additional modules that are
32
+ # not included in the standard devshell modules list.
33
+ #
34
+ # Please see https://numtide.github.io/devshell/extending.html for
35
+ # documentation on consuming extra modules, and see
36
+ # https://github.com/numtide/devshell/tree/main/extra for the
37
+ # extra modules that are currently available.
38
+ imports = [ "${extraModulesPath}/git/hooks.nix" ];
39
+
40
+ git.hooks.enable = false;
41
+ git.hooks.pre-commit.text = ''
42
+ echo 1>&2 'time to implement a pre-commit hook!'
43
+ exit 1
44
+ '';
45
+ }
46
+ );
47
};
48
49
}
0 commit comments