Skip to content

Commit 9eb14b0

Browse files
move nixfmt instructions to FAQ (#1131)
all the interesting infromation is upstream, and there's no point in maintaining a permanently-outdated copy here.
1 parent 0ce7d94 commit 9eb14b0

File tree

4 files changed

+8
-58
lines changed

4 files changed

+8
-58
lines changed

_redirects

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@
4040
/manual/nix/unstable/* https://hydra.nixos.org/job/nix/master/manual/latest/download/1/manual/:splat 200
4141
/manual/nix/development/* https://hydra.nixos.org/job/nix/master/manual/latest/download/1/manual/:splat 200
4242
/tutorials/nixos/continuous-integration-github-actions /guides/recipes/continuous-integration-github-actions 301
43-
43+
/guides/recipes/autoformatting /guides/faq#how-to-format-nix-language-code-automatically 301

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 convert between paths and strings in the Nix language?
613

714
See the Nix reference 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)