about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-12-16 19:18:17 -0800
committerFranck Cuny <franck@fcuny.net>2024-12-16 19:18:17 -0800
commit09ef655bff9a1a597622289b29d2c2b1c6080ce7 (patch)
treea992fb041d5f4fb3a3f585dc67ea54a3e2808a58
parentinstall rustup (diff)
downloadworld-09ef655bff9a1a597622289b29d2c2b1c6080ce7.tar.gz
configure correctly pre-commit checks
The configuration was not regenerated properly.
-rw-r--r--flake.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 83db950..20a5bd4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -39,7 +39,8 @@
 
   # Output config, or config for NixOS system
   outputs =
-    { nixpkgs
+    { self
+    , nixpkgs
     , darwin
     , flake-utils
     , pre-commit-hooks
@@ -61,6 +62,7 @@
           pre-commit-check = pre-commit-hooks.lib.${system}.run {
             src = ./.;
             hooks = {
+              shellcheck.enable = true;
               nixpkgs-fmt.enable = true;
               check-merge-conflicts.enable = true;
               end-of-file-fixer.enable = true;
@@ -74,6 +76,8 @@
             agenix
             inputs.agenix.packages."${system}".default
           ];
+          devshell.startup.pre-commit.text =
+            self.checks.${system}.pre-commit-check.shellHook;
           env = [{
             name = "DEVSHELL_NO_MOTD";
             value = "1";