about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--flake.nix7
-rw-r--r--ops/ci/default.nix6
2 files changed, 11 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index c5be2b6..6f1d036 100644
--- a/flake.nix
+++ b/flake.nix
@@ -42,7 +42,7 @@
       let
         pkgs = import inputs.nixpkgs { inherit system; };
         home-manager = inputs.home-manager.defaultPackage."${system}";
-        ci = import ./ops/ci/fmt.nix { inherit pkgs; };
+        ci = import ./ops/ci { inherit pkgs; };
       in
       {
         packages = pkgs // {
@@ -61,7 +61,10 @@
         };
 
         # `nix run .#ci.format` formats in current directory!
-        apps.ci.format = ci.mkFmtScript self;
+        apps.ci.format = ci.fmt.mkFmtScript self;
+
+        # `nix run .#ci.shellcheck` formats in current directory!
+        apps.ci.shellcheck = ci.shell.mkShellCheckScript self;
 
         devShell = pkgs.mkShell {
           buildInputs = with pkgs; [
diff --git a/ops/ci/default.nix b/ops/ci/default.nix
new file mode 100644
index 0000000..be0c607
--- /dev/null
+++ b/ops/ci/default.nix
@@ -0,0 +1,6 @@
+{ pkgs }:
+
+{
+  fmt = import ./fmt.nix pkgs;
+  shell = import ./shellcheck.nix pkgs;
+}