Skip to content

Commit edabf8b

Browse files
move nixfmt instructions to FAQ
all the interesting infromation is upstream, and there's no point in maintaining a permanently-outdated copy here.
1 parent c76bc9b commit edabf8b

File tree

2 files changed

+7
-56
lines changed

2 files changed

+7
-56
lines changed

source/guides/faq.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
## Nix
44

5+
### How to format Nix language code automatically?
6+
7+
[`nixfmt`](https://github.com/NixOS/nixfmt) is the official formatter for {term}`Nix language` code.
8+
Please refer to its source repository for installation instructions.
9+
10+
`nixfmt` is [used to format all code](https://github.com/NixOS/nixpkgs/blob/master/ci/default.nix) in {term}`Nixpkgs`.
11+
512
### How to operate between Nix paths and strings?
613

714
See the [Nix reference manual](nix-manual) on [string interpolation](https://nix.dev/manual/nix/2.19/language/string-interpolation) and [operators on paths and strings](https://nix.dev/manual/nix/2.19/language/operators#string-concatenation)

source/guides/recipes/autoformatting.md

-56
This file was deleted.

0 commit comments

Comments
 (0)