Skip to content

Commit fb6d670

Browse files
authored
docs: note about rosetta install on mac
1 parent 65068a5 commit fb6d670

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/start/nix.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ This installer automatically [enable flakes](https://nixos.wiki/wiki/Flakes#Enab
1111
To test your Nix install, run:
1212

1313
```sh
14-
nix run nixpkgs#hello
14+
nix run nixpkgs#nix-info -- -m
1515
```
1616

17+
Note: If you are on an ARM-based Mac (like M1), the `system` field of `nix-info`'s output must say `"aarch64-darwin"`. If it instead says `"x86_64-darwin"`, it means that you have incorrectly installed Nix (i.e., under Rosetta).
18+
1719
## See also
1820

1921
- [[nix-rapid]]
2022
- [NixOS](https://nixos.org/), a Linux distro based on the Nix package manager.
2123
- [nix-darwin](https://github.com/LnL7/nix-darwin), replaces homebrew and the like on macOS, using Nix.
2224

23-
[^so]: Use the `sysctl -n sysctl.proc_translated` command to check this. [Ref](https://stackoverflow.com/a/67690510/55246)
25+
[^so]: Use the `sysctl -n sysctl.proc_translated` command to check this. [Ref](https://stackoverflow.com/a/67690510/55246)

0 commit comments

Comments
 (0)