You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/guides/faq.md
+7
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,13 @@
2
2
3
3
## Nix
4
4
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
+
5
12
### How to convert between paths and strings in the Nix language?
6
13
7
14
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)
0 commit comments