about summary refs log tree commit diff
path: root/flake
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-12-14 12:59:02 -0800
committerFranck Cuny <franck@fcuny.net>2023-12-14 12:59:02 -0800
commit0c4df2124f99660ac5abeff698f59fa21038b51f (patch)
tree2bc7b236a9369d763a38242da61ec7bd827b66d1 /flake
parenttest (diff)
downloadworld-0c4df2124f99660ac5abeff698f59fa21038b51f.tar.gz
pre-commit delegates all the work to treefmt
Clean up the yaml file for the GHA.
Diffstat (limited to 'flake')
-rw-r--r--flake/devshell.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/flake/devshell.nix b/flake/devshell.nix
index e641bd3..6e1d40e 100644
--- a/flake/devshell.nix
+++ b/flake/devshell.nix
@@ -15,8 +15,13 @@
         name = "world";
 
         packages = with pkgs; [
+          (config.treefmt.build.wrapper)
         ];
 
+        devshell.startup = {
+          pre-commit.text = config.pre-commit.installationScript;
+        };
+
         commands = [
           { package = config.treefmt.build.wrapper; }
         ];
@@ -30,6 +35,7 @@
         programs = {
           nixpkgs-fmt.enable = true;
           shfmt.enable = true;
+          shellcheck.enable = true;
           yamlfmt.enable = true;
           taplo.enable = true;
         };
@@ -39,9 +45,7 @@
         settings = {
           hooks = {
             # deadnix.enable = true;
-            shellcheck.enable = true;
             treefmt.enable = true;
-            yamlfmt.enable = true;
           };
         };
       };