Skip to content

Commit add85d7

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 add85d7

File tree

3 files changed

+7
-57
lines changed

3 files changed

+7
-57
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.

source/guides/recipes/index.md

-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ Managing remote sources <./dependency-management.md>
1111
Python development environment <./python-environment.md>
1212
post-build-hook.md
1313
continuous-integration-github-actions.md
14-
autoformatting.md
1514
```

0 commit comments

Comments
 (0)