feat(flake): add shellcheck to pre-commit-check
This commit is contained in:
parent
ab0bc5268b
commit
86e655057e
|
@ -176,7 +176,10 @@
|
|||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pre-commit-check = pre-commit-hooks.lib.${system}.run {
|
||||
src = ./.;
|
||||
hooks = { nixfmt.enable = true; };
|
||||
hooks = {
|
||||
nixfmt.enable = true;
|
||||
shellcheck.enable = true;
|
||||
};
|
||||
};
|
||||
in {
|
||||
formatter = nixpkgs.legacyPackages."${system}".nixfmt;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p bash gnupg
|
||||
# shellcheck shell=bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p bash parted cryptsetup btrfs-progs
|
||||
# shellcheck shell=bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
|
|
Loading…
Reference in a new issue