Skip to content

Commit bfbe959

Browse files
committed
docs: Update on the update in flake-parts template
1 parent 86c757f commit bfbe959

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ nix flake init -t github:akirak/flake-templates#flake-utils
5555

5656
### [flake-parts](flake-parts/flake.nix)
5757

58-
This is a boilerplate based on [flake-parts](https://flake.parts/).
58+
This is a boilerplate based on [flake-parts](https://flake.parts/). It also
59+
includes a basic [treefmt-nix](https://github.com/numtide/treefmt-nix)
60+
configuration, so you can run `nix fmt` and formatting checks out of the box.
5961

6062
``` bash
6163
nix flake init -t github:akirak/flake-templates#flake-parts

doc/src/content/docs/patterns/formatting/treefmt-nix.mdoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ title: Checking formatting using treefmt-nix on GitHub Actions
77
This tutorial explains how to check formatting on GitHub Actions using
88
[treefmt-nix](https://github.com/numtide/treefmt-nix).
99
## Add a treefmt-nix configuration
10-
Some of the flake templates, including `treefmt`, integrates treefmt-nix out of
11-
the box. You don't have to add a configuration in this case.
10+
Some of the flake templates, including `treefmt` and `flake-parts`, integrate
11+
treefmt-nix out of the box. You don't have to add a configuration in this
12+
case.
1213

1314
Otherwise, please add a configuration to your flake manually by consulting [the
1415
documentation](https://github.com/numtide/treefmt-nix?tab=readme-ov-file#flakes).

0 commit comments

Comments
 (0)