1
0
Fork 0
nixos-config/test.nix

18 lines
494 B
Nix
Raw Normal View History

2021-05-18 14:28:31 +00:00
let
2022-08-11 09:45:49 +00:00
sources = import ./nix/sources.nix;
2022-11-22 11:51:10 +00:00
nix-pre-commit-hooks = import "${sources."pre-commit-hooks.nix"}/nix" {nixpkgs = sources.nixos-unstable;};
2022-03-08 01:42:46 +00:00
in {
2021-05-18 14:28:31 +00:00
pre-commit-check = nix-pre-commit-hooks.run {
src = ./.;
hooks = {
hlint.enable = true;
2022-03-08 01:42:46 +00:00
alejandra.enable = true;
2022-03-08 04:53:07 +00:00
nix-linter.enable = false; # Too many false positives for now
2022-03-08 02:19:09 +00:00
statix.enable = true;
2021-05-18 14:28:31 +00:00
fourmolu.enable = true;
2022-03-08 01:42:46 +00:00
cabal-fmt.enable = true;
shellcheck.enable = true;
2021-05-18 14:28:31 +00:00
};
};
}