feat: add treefmt to flake root

This commit is contained in:
2026-06-07 21:58:16 -05:00
parent ba2dce4b85
commit 0d1a37eef3
6 changed files with 33 additions and 12 deletions
+9 -1
View File
@@ -36,6 +36,7 @@
./rust
./rust-esp32-c6
inputs.treefmt-nix.flakeModule
flake-parts.flakeModules.flakeModules
# define the flake.templates option
({lib, ...}: {
@@ -57,6 +58,13 @@
systems = ["aarch64-linux" "x86_64-linux" "aarch64-darwin"];
perSystem = {pkgs, ...}: {formatter = pkgs.alejandra;};
perSystem = {pkgs, ...}: {
treefmt.programs = {
alejandra.enable = true; # nix
taplo.enable = true; # toml
rumdl-check.enable = true; # markdown
rumdl-format.enable = true; # markdown
};
};
};
}