From c6281260dc074012b54f22f6dba7d6bef72813b6 Mon Sep 17 00:00:00 2001 From: traxys Date: Sun, 5 May 2024 19:34:47 +0200 Subject: [PATCH] flake-modules: Use nixfmt instead of alejandra --- flake-modules/dev/default.nix | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/flake-modules/dev/default.nix b/flake-modules/dev/default.nix index 66afdba7..760021df 100644 --- a/flake-modules/dev/default.nix +++ b/flake-modules/dev/default.nix @@ -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; };