1
0
Fork 0
nixos-config/test.nix
2022-03-08 05:53:07 +01:00

18 lines
486 B
Nix

let
nix-pre-commit-hooks = import (import ./nix/sources.nix)."pre-commit-hooks.nix";
in {
pre-commit-check = nix-pre-commit-hooks.run {
src = ./.;
excludes = ["nix/.*" "hardware-configuration.nix"];
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;
};
};
}