diff --git a/flake.nix b/flake.nix index 512ce03a..5135c6b5 100644 --- a/flake.nix +++ b/flake.nix @@ -162,6 +162,15 @@ alejandra -c . ''; }; + + shfmt = simpleCheck rec { + name = "shell-checks"; + src = pkgs.lib.sources.sourceFilesBySuffices ./. [".sh"]; + nativeBuildInputs = [pkgs.shfmt]; + checkPhase = '' + shfmt -d -s -i 4 -ci ${src} + ''; + }; }; } );