Skip to content

Commit

Permalink
flake-modules: Use nixfmt instead of alejandra
Browse files Browse the repository at this point in the history
  • Loading branch information
traxys committed May 5, 2024
1 parent c05fba4 commit c628126
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions flake-modules/dev/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
Expand Down

0 comments on commit c628126

Please sign in to comment.