nix-config/flake/checks.nix

22 lines
410 B
Nix

{ self, inputs, ... }:
{
perSystem = { system, ... }: {
checks = {
# NOTE: seems like inputs' does not output the 'lib' attribute
pre-commit = inputs.pre-commit-hooks.lib.${system}.run {
src = self;
hooks = {
nixpkgs-fmt = {
enable = true;
};
shellcheck = {
enable = true;
};
};
};
};
};
}