docs(nix): update formatting instructions

This commit is contained in:
Yusuf Bera Ertan 2022-04-28 20:44:17 +03:00
parent a0b7446f58
commit 1302b7da77
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -190,11 +190,10 @@ Modify the relevant `rev` field in `flake.lock` to what you need - you can use `
## Formatting ## Formatting
Use [nixpkgs-fmt](https://github.com/nix-community/nixpkgs-fmt) to format files. Use [alejandra](https://github.com/kamadorueda/alejandra) to format files.
To format every Nix file: To format every Nix file:
```shell ```shell
nixpkgs-fmt flake.nix nix/*.nix # From repository root
# or alejandra .
nixpkgs-fmt **/**.nix
``` ```