mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
flake-modules: explicitly set the same nixfmt for treefmt + pre-commit
This commit is contained in:
parent
d9789956d9
commit
a54ee8ad64
1 changed files with 8 additions and 2 deletions
|
@ -8,12 +8,18 @@
|
|||
|
||||
perSystem =
|
||||
{ pkgs, config, ... }:
|
||||
let
|
||||
fmt = pkgs.nixfmt-rfc-style;
|
||||
in
|
||||
{
|
||||
treefmt.config = {
|
||||
projectRootFile = "flake.nix";
|
||||
|
||||
programs = {
|
||||
nixfmt-rfc-style.enable = true;
|
||||
nixfmt = {
|
||||
enable = true;
|
||||
package = fmt;
|
||||
};
|
||||
statix.enable = true;
|
||||
};
|
||||
};
|
||||
|
@ -21,8 +27,8 @@
|
|||
pre-commit = {
|
||||
settings.hooks = {
|
||||
nixfmt = {
|
||||
package = pkgs.nixfmt-rfc-style;
|
||||
enable = true;
|
||||
package = fmt;
|
||||
};
|
||||
statix = {
|
||||
enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue