1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 19:01:16 +02:00

Merge pull request #11894 from myclevorname/nixfmt

doc/nix fmt: Mention nixfmt-rfc-style instead of nixfmt(-classic)
This commit is contained in:
Valentin Gagarin 2024-11-18 09:06:08 +01:00 committed by GitHub
commit 4387c5ae80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,13 +22,13 @@ With [nixpkgs-fmt](https://github.com/nix-community/nixpkgs-fmt):
} }
``` ```
With [nixfmt](https://github.com/serokell/nixfmt): With [nixfmt](https://github.com/NixOS/nixfmt):
```nix ```nix
# flake.nix # flake.nix
{ {
outputs = { nixpkgs, self }: { outputs = { nixpkgs, self }: {
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt; formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
}; };
} }
``` ```