flake-modules: Use nixfmt instead of alejandra

This commit is contained in:
traxys 2024-05-05 19:34:47 +02:00
parent c05fba47c7
commit c6281260dc

View file

@ -1,20 +1,19 @@
{inputs, ...}: {
imports = [
inputs.pre-commit-hooks.flakeModule
./devshell.nix
];
{ inputs, ... }: {
imports = [ inputs.pre-commit-hooks.flakeModule ./devshell.nix ];
perSystem = {pkgs, ...}: {
formatter = pkgs.alejandra;
perSystem = { pkgs, ... }: {
formatter = pkgs.nixfmt-rfc-style;
pre-commit = {
settings.hooks = {
alejandra.enable = true;
nixfmt = {
package = pkgs.nixfmt-rfc-style;
enable = true;
};
statix = {
enable = true;
excludes = [
"plugins/lsp/language-servers/rust-analyzer-config.nix"
];
excludes =
[ "plugins/lsp/language-servers/rust-analyzer-config.nix" ];
};
typos.enable = true;
};