1
0
Fork 0
nixos-config/test.nix
2022-11-22 16:25:54 +01:00

18 lines
553 B
Nix

let
commit = (builtins.fromJSON (builtins.readFile ./nix/sources.json))."pre-commit-hooks.nix".rev;
nix-pre-commit-hooks = builtins.getFlake "github:cachix/pre-commit-hooks.nix/${commit}";
in {
pre-commit-check = nix-pre-commit-hooks.lib.x86_64-linux.run {
src = ./.;
hooks = {
hlint.enable = true;
alejandra.enable = true;
nix-linter.enable = false; # Too many false positives for now
statix.enable = true;
fourmolu.enable = true;
cabal-fmt.enable = true;
shellcheck.enable = true;
};
};
}