feat: add treefmt to flake root
This commit is contained in:
@@ -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
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user