fix: pre-commit-hook config
This commit is contained in:
parent
1f678dfccc
commit
df0cf8b9dd
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
/result
|
||||
.direnv
|
||||
.pre-commit-config.yaml
|
||||
|
|
|
@ -106,6 +106,7 @@
|
|||
perSystem = {
|
||||
pkgs,
|
||||
self',
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
# Configure treefmt
|
||||
|
@ -130,8 +131,12 @@
|
|||
in
|
||||
builtins.listToAttrs (builtins.map toPackage pkgFiles);
|
||||
# Create a useable devshell for me
|
||||
devshells.default = {
|
||||
devShells.default = pkgs.mkShell {
|
||||
name = "dev";
|
||||
shellHook = ''
|
||||
${config.pre-commit.installationScript}
|
||||
echo 1>&2 "Welcome to the development shell!"
|
||||
'';
|
||||
packages = [
|
||||
pkgs.nil
|
||||
pkgs.pre-commit
|
||||
|
|
Loading…
Reference in a new issue