nixfmt-rfc-style

This commit is contained in:
Motiejus Jakštys 2024-09-06 09:40:42 +03:00
parent 65b1d0a562
commit 0d2c719d6f
1 changed files with 2 additions and 8 deletions

View File

@ -273,20 +273,14 @@
}; };
checks = builtins.mapAttrs ( checks = builtins.mapAttrs (
system: deployLib: system: deployLib:
let
pkgs = import nixpkgs { inherit system overlays; };
in
deployLib.deployChecks self.deploy deployLib.deployChecks self.deploy
// { // {
pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run { pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run {
src = ./.; src = ./.;
hooks = { hooks = {
nixfmt = {
enable = true;
package = pkgs.nixfmt-rfc-style;
};
deadnix.enable = true;
statix.enable = true; statix.enable = true;
deadnix.enable = true;
nixfmt-rfc-style.enable = true;
}; };
}; };
} }