flake: add treefmt

This commit is contained in:
Leonardo Eugênio 2025-01-24 08:24:42 -03:00
parent f8ee1952f8
commit 3d612c91f6
3 changed files with 50 additions and 4 deletions

8
treefmt.nix Normal file
View file

@ -0,0 +1,8 @@
{ pkgs, ... }:
{
projectRootFile = "flake.nix";
programs.nixfmt.enable = true;
programs.nixfmt.package = pkgs.nixfmt-rfc-style;
settings.on-unmatched = "debug";
}