docs: note about rosetta install on mac

This commit is contained in:
Sridhar Ratnakumar 2023-03-17 10:08:32 -04:00 committed by GitHub
parent 65068a5292
commit fb6d6700dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,13 +11,15 @@ This installer automatically [enable flakes](https://nixos.wiki/wiki/Flakes#Enab
To test your Nix install, run:
```sh
nix run nixpkgs#hello
nix run nixpkgs#nix-info -- -m
```
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).
## See also
- [[nix-rapid]]
- [NixOS](https://nixos.org/), a Linux distro based on the Nix package manager.
- [nix-darwin](https://github.com/LnL7/nix-darwin), replaces homebrew and the like on macOS, using Nix.
[^so]: Use the `sysctl -n sysctl.proc_translated` command to check this. [Ref](https://stackoverflow.com/a/67690510/55246)
[^so]: Use the `sysctl -n sysctl.proc_translated` command to check this. [Ref](https://stackoverflow.com/a/67690510/55246)