mirror of
https://github.com/the-nix-way/dev-templates
synced 2026-11-29 07:14:45 +01:00
`pkgs.nixfmt-tree` is being recommended as the official Nix formatter: <https://nix.dev/manual/nix/2.35/command-ref/new-cli/nix3-fmt#example> Update default formatters to `pkgs.nixfmt-tree` to avoid the following deprecation warnings when using `nix fmt`, `nix fmt .` or `nix fmt -- .`: - Warning: Bare invocation of nixfmt is deprecated. Use `nixfmt -` for anonymous `stdin`. - Passing directories or non-Nix files (such as ".") is deprecated and will be unsupported soon. Please use the `pkgs.nixfmt-tree` wrapper instead, or <https://github.com/numtide/treefmt-nix> for more flexibility.